From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,13007e6f500d17dd,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: 10650a,13007e6f500d17dd,start X-Google-Attributes: gid10650a,public X-Google-Thread: fc89c,13007e6f500d17dd,start X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,13007e6f500d17dd,start X-Google-Attributes: gidfee84,public From: steffen@latrade.com (Steffen Ullrich) Subject: out of swap -> killing inetd Date: 1996/07/08 Message-ID: <4rr9md$gsc@xensei3.xensei.com>#1/1 X-Deja-AN: 167201488 sender: steffen@manta.latrade.com 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 A while ago I run a really big process (user process - no root!) on an DEC UNIX 3.2C machine with 64MByte so that the machine run out of swap space. Instead of killing the process which caused this problem it randomly killed other processes - among them the inetd. This made it unable to rlogin/telnet to the machine in order to maintain it (or at least to reboot it). luckely enough the machine was located in the next room so I could maintain it locally, otherwise I had a big problem. The questions I got: - 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). - can a process have a higher priority in the way that if the process requests more memory it should get it, even if other processes with less "memory priority" needs to be killed? - What solutions to these problems (killing the wrong, memory priorities) offer other systems (process quota are of no help in this situation). Does anybody know how these problems are handled on non UNIX's like VMS and WindowsNT? Note: I don't think that this questions is primary related to the different swap modes on DEC UNIX (although this machine run in deferred mode). I believe this situation might also happen in the immediate swap mode (e.g. if for each memory the process needs the same amount will be reserved in the swap space) in case that inetd should (temporary) need more memory to startup a process but there is no more swap available on the system. In this situation another (user) process should be killed, but inetd should get all the memory it needs (otherwise I get the same situation = no more remote control possible).