From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,10ed03b1f29576dd X-Google-Attributes: gid1164f8,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Q: Running out of swap Date: 1999/04/29 Message-ID: <7ga58e$72e$1@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 472374983 Distribution: world References: Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Newsgroups: comp.sys.dec In article , "Karl N. Matthias" writes: > I'm a newish Digital/Tru64 UNIX admin though I'm quite experienced >on Solaris and various BSD's. I'm running into something which I have >rarely seen on other systems. When I run large apps or long compiles (ie >push the memory limit) I get the following: > >swap space below 10 percent free Digital UNIX (Tru64 UNIX and DEC OSF/1) offers two methods of page and swap space *reservation*; it does or it doesn't. The default is that it does. When virtual memory is create, that may need page and swap space, the amount needed is reserved. This ensures that if it is needed, it will be available. The affect is to limit the amount of virtual memory to the amount of page/swap space available. The message you see is a warning that the available space is about to run out. Running out will simply prevent the process from starting or allocating more virtual memory. The alternative to reserving page and swap space is not to. To get this method delete /sbin/swapdefault and reboot. The advantage is that the amount of virtual memory that can be created is now limited by the sum of available and page/swap space. The risk is that there may be more virtual memory created than there is page and swap space for it to be written out. If a process is paged or swapped and there isn't enough space for it, idle processes will be killed to get their space. If you can reliably control your page/swap space usage, the non-reservation method offers an opportunity to configure only as much space as is needed. If you can't control the usage, it offers the malicious user an opportunity to deny service to relatively idle processes. >Karl > > > -- Alan Rollow alan@nabeth.cxo.dec.com