Christian Biere | 1 Feb 2004 04:46
Picon
Picon
Gravatar

Re: making swap *smaller* than memory can be painful

roberto <at> redix.it wrote:
> > On Fri, Jan 30, 2004 at 02:21:10PM +0100, roberto <at> redix.it wrote:
> >> and, like this case where RAM > SWAP, what about do not using swap at
> >> all (disabling swap, for example)?

> > This should work too.

It should but it depends on your carma. I've tried it with 256MB RAM. If
you're using system as desktop machine or need even more memory than
such machines, just forget it. It's not so funny when the kernel kills your
X server. The rule (swap space == 2 * RAM) is of course very outdated.
That was true when the OS reserved a page in swap for every physical page.
Though, on a machine which serves dozens of users at the same time or
needs a lot of virtual memory due to certain software, you'll usually need
much more than 2*RAM swap space (or rather more RAM).

> http://www.ccrc.wustl.edu/pub/chuck/tech/uvm/

The presented information there is very old.

--

-- 
Christian

Gmane