From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,117ce9c653aa333c,start X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,117ce9c653aa333c,start X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,117ce9c653aa333c,start X-Google-Attributes: gidf678f,public From: dyuan@win20.rch.mci.com (David Yuan) Subject: Make Shared Memory Block Memory-Resident Possible? Date: 1997/04/01 Message-ID: <5hr99r$ifj$1@news.internetmci.com>#1/1 X-Deja-AN: 229894684 Organization: MCI, Dallas Reply-To: David.Yuan@mci.com Newsgroups: comp.unix.programmer,comp.unix.osf.misc,comp.unix.osf.osf1 hi all, what i want is to have a shared memory be locked inside the physical memory to prevent from being paged out. what i did is first create a shared memory segment using POSIX4 or/and Systen V shared memory creation procedures, then call mlock() to lock it. does it work? i mean, if the memory creation process exit, is the shared memory segment still being locked inside the physical memory? in the manual, it says mlock() only lock the pages during a process's life time. but the shared memory pages exists longer than a particular process's life time. my platform is DEC Alpha running Digital UNIX V3.2C. thanks for any input. David -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ David Yuan MCI Telecommunications Corporation 901 International Pkwy. || Office Number: 972 498 1129