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: rid@pst.cfmu.eurocontrol.be (Jim Reid) Subject: Re: out of swap -> killing inetd Date: 1996/07/10 Message-ID: #1/1 X-Deja-AN: 167563369 sender: rid@heron.pst.cfmu.eurocontrol.be references: <4rr9md$gsc@xensei3.xensei.com> <4rt691$2jl@sun.rhbnc.ac.uk> organization: Eurocontrol, Brussels newsgroups: comp.unix.internals,comp.unix.osf.osf1,comp.unix.questions,comp.unix.programmer Peter> That's pretty broken. It should be possible to simply Peter> allocate memory pretty close to real memory + swap without Peter> problems, and then have malloc (actually, sbrk()) and Peter> friends generate errors at that point. Sure, but who ever checks the return value from malloc()? :-) Another solution is to do what's done here: give the servers enough RAM so that they *never* swap. The down side is that it takes 15-20 minutes to perform the boot-time memory checks....