From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dfe319d5a3bb0588 X-Google-Attributes: gidfee84,public From: Jan Wysocki Subject: Re: Low on swapspace Date: 2000/02/08 Message-ID: <389FF12D.1C0DC9A@borg.bt.co.uk>#1/1 X-Deja-AN: 583148926 Content-Transfer-Encoding: 7bit References: <389EDF65.C71E1B0@viewlocity.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: postmaster@axion.bt.co.uk X-Trace: pheidippides.axion.bt.co.uk 950006261 19675 132.146.62.184 (8 Feb 2000 10:37:41 GMT) Organization: Coypu Control Mime-Version: 1.0 NNTP-Posting-Date: 8 Feb 2000 10:37:41 GMT Newsgroups: comp.unix.osf.osf1 Marcus Johansson wrote: > > Hi! > > I have a Compaq Unix 5.0 server who is constantly complaining about lack > of swapspace. There is absolutely nothing running on it, and i've > configured it pretty much default, no strange things at all. > > I know this isn't much information, but I don't know what to include.. > Except for this: > > # bash-2.03# swapon -s > Swap partition /dev/disk/dsk0b (default swap): > Allocated space: 16384 pages (128MB) > In-use space: 83 pages ( 0%) > Free space: 16301 pages ( 99%) > > Total swap allocation: > Allocated space: 16384 pages (128.00MB) > Reserved space: 12677 pages ( 77%) > In-use space: 83 pages ( 0%) > Available space: 3707 pages ( 22%) > > What is reserved space? As it suggests, processes have reserved this address space, but are not currently using it. They're jus hedging their bets. If you can't increase your swap space, you might care to try using 'lazy swap' instead. If the link '/sbin/swapdefault' exists, rename it and reboot your machine. With 'lazy swap' processes don't allocate swap space until they need to use it. The downside of lazy swap is that it's possible that you may run out of swap space at some critical moment. With 'immediate swap' allocation, processes will fail to start the moment all swap space has been reserved. -- Jan