Keeping pages from getting swapped out.

Paul de Bra wsinpdb at eutws1.win.tue.nl
Mon Mar 12 20:18:56 AEST 1990


In article <1856 at lzga.ATT.COM> bogatko at lzga.ATT.COM (George Bogatko) writes:
>> In article <38281 at cornell.UUCP> chandra at cs.cornell.edu (Tushar D Chandra) writes:
>uname
>tm600b tm600b 3.2.1 3 3B2
>cd /lib   
>ar tv libc.a | grep plock
>rw-r--r--  5079/  2003    314 May 25 17:44 1987 plock.o
>

Oops, my goof. The call is there allright, and just to make sure I
checked the manual, and it's there too (no, this is not obvious)
and I wrote a small test program and verified that apart from being
there the system call actually works.

Guess I was still sleeping when I claimed that call wasn't there.

Just a word of warning: this call should not be used with large
processes, as this can easily hang the system (my first attempt caused
this). If you suddenly lock most of your memory (I locked 5Mbyte on an
8Mbyte system, which leaves about 1/2Mbyte available to other processes
in my case) the kernel is not able to keep the other processes going.
The whole system just locks up.

Paul.
(debra at research.att.com)



More information about the Comp.unix.wizards mailing list