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: fc89c,13007e6f500d17dd X-Google-Attributes: gidfc89c,public X-Google-Thread: 10650a,13007e6f500d17dd X-Google-Attributes: gid10650a,public X-Google-Thread: fee84,13007e6f500d17dd X-Google-Attributes: gidfee84,public From: boc@ironbark.bendigo.latrobe.edu.au (Brian James O'Connor) Subject: Re: out of swap -> killing inetd Date: 1996/07/23 Message-ID: <4t21so$th2@lugb.latrobe.edu.au>#1/1 X-Deja-AN: 169607435 references: <4rr9md$gsc@xensei3.xensei.com> followup-to: comp.unix.internals,comp.unix.osf.osf1,comp.unix.questions,comp.unix.programmer organization: La Trobe University newsgroups: comp.unix.internals,comp.unix.osf.osf1,comp.unix.questions,comp.unix.programmer Steffen Ullrich (steffen@latrade.com) wrote: : 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). I have had the same experiences with 3.2b. I may just be lucky, but after I installed the following patch =============================================================================== /usr/sys/BINARY/syscall_subr.o CHECKSUM: 37762 18 RCS: 4.3.27.2 ----------------------- Patch ID: OSF325-320127 Installation Instructions - A kernel build is required. Problem 1: (Patch ID: OSF325-320127) (HPAQ5459E) ********** A bug in swtch() allows a lower priority job to preempt a job with a higher priority. =============================================================================== I have not had any more problems. The patch doesn't specifically address the memory problems, but as I said, it seemed to work! boc -- ------------------------------------------------------------ Brian O'Connor, Unix Systems Consultant Latrobe University,Bendigo boc@ironbark.bendigo.latrobe.edu.au ------------------------------------------------------------