On Wed, Sep 28, 2005 at 10:44:57AM +0200, Carl-Daniel Hailfinger wrote: > You're not blind, but the information is based on a problem in the > virtual memory subsystem which has been fixed in late 2.2 kernels, so it > shouldn't even apply to debian anymore. For software suspend, you may > want at least RAM size for swap if your machine is really loaded, but > for the non-suspend case you're free to pick any size (even some value > above 2 GB). I'm using 512 MB RAM and 256 MB swap and even suspend works > just fine for me.
Sure it does work but is it also efficient? If you don't have enough swap space for all virtual pages that are not mapped to background storage on a regular filesystem then you have more I/O than you would have if you could keep all pages that ever were swapped out on background storage (at least as long as you don't write to the respective pages). Obviously the rule to double the RAM is just a more or less random criteria and if you have too less swap space it might be even more smart to ommit the swap partition at all (unless you need it for suspend-to-disk). A more general rule could be: The more memory you have the more value you can gain by a large swap partition and the larger your disks are the cheaper it is for you to have a large swap partition. But if you want to guess a useful partition size for the swap partition you _have_ to fill this algorithm with some (somewhat) useful numbers. Robert -- Robert Schiele Tel.: +49-621-181-2214 Dipl.-Wirtsch.informatiker mailto:[EMAIL PROTECTED]
pgpkig49ybi4J.pgp
Description: PGP signature
