Eric Frazier wrote:
> Hi,
> 
> This may be totaly ignorate crap, but I noticed this when I was reading the
> ps man page on BSD 4.5 about sys/proc.h flags
> 
> This one I noticed.. 
> 
> P_SYSTEM       0x00200        System proc: no sigs, stats or swapping
> 
> 
> Could this mean what I think it means? That a process with this flag set,
> won't be swaped out?? 

I've spent some time with our friend google and here is what I came up 
with (it's hard to search for things which can be called in many 
different ways):

I've searched for P_SYSTEM and it seems that it's a *BSD thing and also 
when you set it you don't get sigs delivered. e.g. see the discussion here:
http://mail-index.netbsd.org/tech-kern/1998/09/08/0004.html

There is also: madvise(2) - give advice about use of memory
Has anybody tried to use it? Can this help? There is some discussion here:
http://lists.insecure.org/linux-kernel/2001/Oct/0877.html

Here is another observation and explanation of the swapping/mem 
unsharing phenomena on linux.
http://www.uwsg.iu.edu/hypermail/linux/kernel/0110.3/0324.html
http://www.uwsg.iu.edu/hypermail/linux/kernel/0110.3/0307.html

Finally, apparently it's relatively easy to patch the linux kernel to 
enabling mlock for non-root processes:
http://www.uwsg.iu.edu/hypermail/linux/kernel/9608.2/0280.html



> At 03:55 PM 3/12/02 +0100, Elizabeth Mattijsen wrote:
> 
>>Oops. Premature sending...
>>
>>I have two ideas that might help:
>>- reduce number of global variables used, less memory pollution by lexicals
>>- make sure that you have the most up-to-date (kernel) version of your 
>>OS.  Newer Linux kernels seem to be a lot savvy at handling shared memory 
>>than older kernels.
>>
>>Again, I wish you strength in fixing this problem...
>>
>>
>>Elizabeth Mattijsen
>>
>>
> 
> http://www.kwinternet.com/eric
> (250) 655 - 9513 (PST Time Zone)
> 
> 
> 



-- 


_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

Reply via email to