SUMMARY: make a process non swapable

From: Bevan Broun <bevanb_at_ee.uwa.edu.au>
Date: Fri, 17 Mar 2000 09:34:57 +0800

Thanks to:

LHERCAUD_at_bouyguestelecom.fr
Bryan Rank <bryan_at_compgen.com>
Alan Angulo <alan_at_esu.edu>
Dr. Tom Blinn, 603-884-0646" <tpb_at_doctor.zk3.dec.com>
"Frank Wortner" <frank_at_bondnet.com>

I wanted to know if it was possilbe to make a process non swapable.
This was to be a tmp messure to solve an urgent problem, luckily the
software that was causing the problems has been turned off and will be
moved to another machine so I didnt need to do anything. The answer
is:

1) If you have the source code there are a few systems calls to use:
mlock mlockall plock

2) If you only have the binary the only thing to do is run the process
at a high enough priority so it doesnt get swapped out.

Thanks to all

BB
-- 
Bevan Broun                                           ph (08) 9380 1587
Computer Systems Officer                             fax (08) 9380 1065
Dept. Electrical and Electronic Engineering      
University of Western Australia                                 rm. G70
Received on Fri Mar 17 2000 - 01:35:27 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT