From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,13007e6f500d17dd X-Google-Attributes: gidf8c9b,public X-Google-Thread: 10650a,13007e6f500d17dd X-Google-Attributes: gid10650a,public X-Google-Thread: fc89c,13007e6f500d17dd X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,13007e6f500d17dd X-Google-Attributes: gidfee84,public From: steffen@manta.latrade.com (Steffen Ullrich) Subject: Re: out of swap -> killing inetd Date: 1996/07/10 Message-ID: <4s0tch$kbf@xensei3.xensei.com>#1/1 X-Deja-AN: 167628336 references: <4rr9md$gsc@xensei3.xensei.com> <4rtlcg$vua@rose.muohio.edu> content-type: text/plain; charset=us-ascii organization: The Xensei Corporation mime-version: 1.0 newsgroups: comp.unix.internals,comp.unix.osf.osf1,comp.unix.questions,comp.unix.programmer In article <4rtlcg$vua@rose.muohio.edu>, kaelbers@avian.dars.muohio.edu (Randy Kaelber) writes: > Steffen Ullrich (steffen@latrade.com) wrote: >> - can I prevent processes from beeing killed on this kind of >> problems (or at least killed as the last ones) ? Maybe I >> could tell the system to first kill the user processes and only >> if nothing helps to kill the root processes. Better yet, >> specify the "essential" processes which should never be killed >> (and if the system cannot solve the problem this way it should >> better reboot itself). > > I don't know if this will help, but check out the plock subroutine. > Basically what it can do is mark a process unswappable, which I would like > to think would notify your OS not to kill it if you're out of swap space. > I think this would be waste of memory. Every locked page decreases the RAM available for other programs - even if its nearly never used. And with this method I could not lock precompiled programs (like inetd) where I don't have the sources. What I need is something which lets the sysadm specify which programs are essential - w/o the need to have the source code.