Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!cornell!chandra From: chandra@thiazi.cs.cornell.edu (Tushar D Chandra) Newsgroups: comp.unix.wizards Subject: Keeping pages from getting swapped out. Keywords: swapping, vadvise, sticky bits, torn hair Message-ID: <38281@cornell.UUCP> Date: 7 Mar 90 15:46:45 GMT Sender: nobody@cornell.UUCP Reply-To: chandra@cs.cornell.edu (Tushar D Chandra) Distribution: comp Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 17 Hi, I'm writing an application in which I need to keep a small process (1-2 pages) from getting swapped out. The following solutions are unacceptable: 1. modifying the kernel 2. writing the process as a device driver (see 1). I need the process to be an "honest to god" user process. Does anyone out there know how to do this? If I remember correctly, older versions of UNIX *had* a system call (lock, I think) which if executed by a process run by root would solve my problem. Thanks in advance. -Tushar Chandra (e-mail chandra@cs.cornell.edu)