On Mon, 28 Jun 2004, Ivan Krstic wrote:
Ricky Beam wrote:
Swap should be 2x physical ram. But one can get
away with less.
There was a reasonably long discussion on lkml some time ago regarding
this. The 2xRAM rule of thumb was useful with older machines, but should
not be taken too seriously nowadays; I'd recommend between 256 and 512
MB of swap, no more (except as an emergency solution).
There have been may jehads in the name of swap... There are numerous
reasons to make swap 2x ram, at minimum, 1x ram. At the top of the
list is the strong recommendation from those far more knowledgable
of the linux memory management than ALL of us. Linux doesn't manage
memory the way sane people do... "is this memory free" has a minimum
of three answers. (in 2.6, it's now four answers.)
--Ricky