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: fee84,13007e6f500d17dd X-Google-Attributes: gidfee84,public X-Google-Thread: 10650a,13007e6f500d17dd X-Google-Attributes: gid10650a,public From: Bob Vickers Subject: Re: out of swap -> killing inetd Date: 1996/07/09 Message-ID: <4rt691$2jl@sun.rhbnc.ac.uk>#1/1 X-Deja-AN: 167364033 references: <4rr9md$gsc@xensei3.xensei.com> to: steffen@latrade.com content-type: text/plain; charset=us-ascii organization: Royal Holloway College, University of London x-url: news:4rr9md$gsc@xensei3.xensei.com mime-version: 1.0 newsgroups: comp.unix.internals,comp.unix.osf.osf1,comp.unix.questions,comp.unix.programmer x-mailer: Mozilla 1.1N (X11; I; OSF1 V3.2 alpha) steffen@latrade.com (Steffen Ullrich) 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: Processes are not being killed. They are trying to allocate or write virtual memory and failing because it is not there. Probably they are getting bus errors or memory faults. > >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). > It is almost certainly directly related to your swap mode. In immediate swap mode an error occurs at malloc time if swap space is unavailable, and a well written process can easily recover from this. In deferred mode the malloc succeeds but random errors occur later on when the process tries to write to the memory. This is the penalty you pay for the disc space saving which deferred mode gives you. Regards, Bob -- ============================================================================== Bob Vickers R.Vickers@dcs.rhbnc.ac.uk Department of Computer Science, Royal Holloway College, University of London WWW: http://www.dcs.rhbnc.ac.uk/~bobv/