From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,de744556cef5cee8 X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Swap space Date: 1997/04/09 Message-ID: <5ieoac$kh@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 231663465 Distribution: world References: <33498C4B.41C6@latoso.cheme.cornell.edu> Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Newsgroups: comp.unix.osf.osf1 In article <33498C4B.41C6@latoso.cheme.cornell.edu>, Jeffrey Potoff writes: > > [ Customer is running the default page/swap allocation/reserveration > mode. >Is there an easy way to increase the amount >of swap space ? Yes, but as you next statement notes, getting to the point of having a spare partition will be the hard part. Once you have a spare partition for more page/swap space, running swapon with the block device of that partition is very easy. >The man page made it sound like I needed to >create a new partion on my disk which makes me nervous since I have >the OS and user data on the hard drive and there aren't any 'free' >partitions. As you say, getting to the point of having a spare partition will be the hard part. >In this case, would it be better to go to deferred >mode ? Are there any dangers in doing that ? One. The default page/swap allocation method reserves the page/swap space needed for virtual memory when the memory is created. If you ever need it, you know it will be there. The problem (as you noticed) is that it limits the amount of virtual memory available to the amount of page/swap space. Deferred mode doesn't reserve the space. It raises the limit of virtual memory to the same of available memory and the amount of page/swap space. But, if you run out of page/swap space things can get bad. If something needs to page and there is no page/swap space available for it, the kernel will kill off likely looking processes until it has the space it needs. I think it prefers to start with the most idle processes and works its way to the less idle ones. It may have some clue that certain processes are more important than others (X servers, init, etc) but in extreme conditions it can make the system hard to use. If you have close control over how much virtual memory your application will use and how much the system needs over all you can take advantage of deferred mode to reduce the page/swap needs. If you can't predict what the memory use will be or have users bent on making your system unusable, you don't want to use deferred. > >Thanks, > Jeff > -- Alan Rollow alan@nabeth.cxo.dec.com