Re: Swap File sizes

Gary L. Hennigan (glhenni@cs.sandia.gov)
12 May 1999 16:41:32 -0600


georgek@netwrx1.com (George R. Kasica) writes:
| Quick swap file question here:
|
| Under 2.2.x what is recommended swap sizes?
|
| I'm running 384MB of RAM and as was pointed out yesterday making a
| 768MB swap is a bit of overkill....I seem to remember that in the
| "old" 1.x days the recommendation was to have swap 2x RAM
| amount...what would you suggest for the above setup? I'm also running
| a P-II 366MHz chip.

I don't think the swap space = 2 x RAM rule every applied to Linux,
but there were certainly vendor Unices that suggested this. This
requirement was often related to the fact that upon a kernel panic an
image of your memory contents at the time of the panic was dumped to
the swap partition for later diagnosis. Linux doesn't do this.

In fact, under Linux, with that much RAM, you don't need a swap file
at all. Of course if you plan on running applications that take large
amounts of RAM you might want some swap space. Or if you want the
system to swap out idle applications you might want some.

The short of it is that it depends on what you use your system for and
what the applications you run on it demand. There is no hard rule,
under Linux, for swap space.

Gary

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/