From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fa15ef22191b6e6d X-Google-Attributes: gidfee84,public From: Mat Butler Subject: Re: swap space - reserved space? Date: 1997/12/08 Message-ID: <348C2648.1EC@logica.com>#1/1 X-Deja-AN: 296314925 References: <881590435.27414.0.nnrp-05.9e982017@news.demon.co.uk> Organization: Logica (UK) Ltd Reply-To: ButlerM@logica.com Newsgroups: comp.unix.osf.osf1 As I understand it there are two modes of configuring swap - lazy and greedy. Greedy mode decides at process start up exactly how much swap it needs and reserves it. Lazy mode basically involves processes only going to get more swap if and when it requires more and so has no need to reserve any. The main difference between these two modes is the way that they fall down if they run out of swap. As greedy is default I assume this is the safest. When you start to out of swap you get a nice little error message and the offending process that tried to reserve the space is allowed to run but if swap is exceeded to process is murdered. In lazy mode I think things are more catastophic and a possible chain of processes are killed. I'm pretty sure I was told that this can cause a system crash. So, if you want to avoid a crash and allow your processes to be lazy ensure that you have plenty of swap. Andrew Ireland wrote: > > In our dec 4100, system we have configured an RZ29B disk, partition rz9h as > primary > swap, /sbin/swapdefault points to this device, and yet in an operational > environment > we get the following: > > Total swap: > > Allocated space 244459 pages > Reserved space 229482 pages > > Just from the above you can imagine that we are getting quite a lot of > > "swap space less than 10 percent free" > > what is this "reserved space", who is it resevred by and for what reason? > > Andrew Ireland