I think this has more to do with the Olden Days when kernel panics would
be written out to swap. Or something. You wanted more swap than ram so
the dump wouldn't overwrite your fs.
> My general recommendation is:
> 1) Take the best guess you can at how much total memory you're ever going to
> need at one time. This can vary with the type of tasks you're doing
> (server/desktop/image-editing/etc), the software programs you're using, and
> so on. There is no easy way to figure this out, but I would recommend that
> if you come up with anything less than 128MB, you're probably being too
> optimistic.
> 2) Subtract the amount of RAM you have (believe it or not, the more RAM you
> have, the less swap you need. Imagine that).
> 3) Round up to a nice breaking point (multiples of 64MB are nice and are easy
> to remember), just for convenience.
> 4) Add a little bit of extra just in case (it's better to have too much than
> too little, particularly since disk is cheap). I usually add somewhere
> around 64MB.
>
> For most people, for most systems, this comes out somewhere between 128MB and
> 256MB of swap needed (in some cases you may need 512MB or more, but if you've
> got those sorts of memory demands you may want to carefully consider whether
> more RAM wouldn't be a good investment). If in doubt, go for the larger
> number. After all, with an 8.1GB drive, how much are you going to miss a puny
> 0.25GB (256MB) chunk of it?
This is pretty close to the rules-of-thumb I use. Some round numbers
that work for me:
XFree86: 48MB
Window Manager: ? (fvwm I give about 16MB; E I hear might want 48MB)
Netscape/Mozilla: 64MB
Base system: 32MB
Basic audio: 16MB (mostly buffer space)
Other applications: ?
Minimum swap: 16MB (I allocate in 16MB chunks)
Maximum swap: 1.5x - 2x physical memory.
-- Ferret
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/