From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,13007e6f500d17dd X-Google-Attributes: gidfc89c,public X-Google-Thread: f8c9b,13007e6f500d17dd X-Google-Attributes: gidf8c9b,public X-Google-Thread: 10650a,13007e6f500d17dd X-Google-Attributes: gid10650a,public X-Google-Thread: fee84,13007e6f500d17dd X-Google-Attributes: gidfee84,public From: john@iastate.edu (John Hascall) Subject: Re: out of swap -> killing inetd Date: 1996/07/09 Message-ID: <4rtqbf$dp9@news.iastate.edu>#1/1 X-Deja-AN: 167385888 references: <4rr9md$gsc@xensei3.xensei.com> <4rteld$2tb@route1.france3.fr> organization: Iowa State University, Ames, Iowa USA newsgroups: comp.unix.internals,comp.unix.osf.osf1,comp.unix.questions,comp.unix.programmer Boyd Roberts wrote: }steffen@latrade.com says... }>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. }Process killing based on memory/swap resource problems was always a }bad idea. It's next to impossible to determine what to kill and a worst }case scenario is that everything is killed before the offending process is. }At least with Digital UNIX you can choose a swap policy to be eager or lazy. }I'd make it eager and then the chance of this scenario is lessened. Well, they give you the choice between two not real pleasent choices. a) lazy mode = take your chances, but save swap space b) eager mode = offending process gets it, but need LOTS of swap What would be nice (I think) is: 1) per-process control of lazy/eager 2) ability to mark a process non-swappable 3) a wait/die per-process flag for what to do when no swap available. all of which can be set external to a process (e.g., no need to have source/recompile). For example: # swapctl -noswap `cat /etc/inetd.pid` # swapctl -lazy 34 47 59 John -- John Hascall, Software Engr. Shut up, be happy. The conveniences you ISU Computation Center demanded are now mandatory. -Jello Biafra john@iastate.edu http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud