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: peter@nmti.com (Peter da Silva) Subject: Re: out of swap -> killing inetd Date: 1996/07/09 Message-ID: <4rui23$le@web.nmti.com>#1/1 X-Deja-AN: 167453182 references: <4rr9md$gsc@xensei3.xensei.com> <4rt691$2jl@sun.rhbnc.ac.uk> organization: Network/development platform support, NMTI newsgroups: comp.unix.internals,comp.unix.osf.osf1,comp.unix.questions,comp.unix.programmer In article <4rt691$2jl@sun.rhbnc.ac.uk>, Bob Vickers wrote: > 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. That's pretty broken. It should be possible to simply allocate memory pretty close to real memory + swap without problems, and then have malloc (actually, sbrk()) and friends generate errors at that point. I don't see why it should ever be necessary to kill random processes. -- Peter da Silva (NIC: PJD2) `-_-' 1601 Industrial Boulevard Bailey Network Management 'U` Sugar Land, TX 77487-5013 +1 713 274 5180 "Har du kramat din varg idag?" USA Bailey pays for my technical expertise. My opinions probably scare them