From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Swap space
Date: 1997/04/09 [thread overview]
Message-ID: <5ieoac$kh@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 33498C4B.41C6@latoso.cheme.cornell.edu
In article <33498C4B.41C6@latoso.cheme.cornell.edu>, Jeffrey Potoff <jpotoff@latoso.cheme.cornell.edu> 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
next prev parent reply other threads:[~1997-04-09 4:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-07 4:00 Swap space Jeffrey Potoff
1997-04-09 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-11-24 5:00 Swap Space Thomas Kofoed-Andersen
1999-11-24 5:00 ` Jesper Frank Nemholt
1994-10-21 20:48 swap space Pradeep Balachandran
1994-10-26 12:08 ` Jens Bloch Nielsen
1994-10-27 19:17 ` Tim Llewellyn
[not found] <2afn8a$6tl@huon.itd.adelaide.edu.au>
1993-10-29 0:23 ` Swap space Mike Coleman
1993-11-02 17:07 ` Sergio L Aponte
1993-11-03 19:47 ` Dr Marco Luchini
1993-11-05 20:44 ` Dave Cherkus
1993-11-09 18:37 ` Dan Mosedale
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox