-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-07-18 16:16, Per Jessen wrote:
Carlos E. R. wrote:
Plus the 2X rule is for Windows (3.x), not Linux.
It was often repeated in the context of UNIX admin articles and training.
Yes, but with no real support for saying so, for linux at least. Dunno about unix.
It's general issue on any system with virtual storage and how much swap space you need depends entirely on your workload. The problem in return is that most people do not know the workload, so in the early days when systems only rarely had more than 1Gb of memory, any everyday distro would expect to set up swap-space. How much? Uh well ... hence "twice your amount of memory". To accurate estimate amount of swap-space needed, you'll always need to know the workload, but with disk-space being as cheap as it is, who really cares? I have some mailservers where I always (the number grows regularly) allocate 16Gb for the system and 16Gb for swap.
The first time I saw that number was when Windows appeared, version 3.0 IIRC. At the time it was common to have 2 MiB of memory, or thereabouts (MsDos could not make use of more than 1 MiB (tricks aside), so there was no reason to have more and it was expensive). Windows swap file had a limit of twice the ram... so the advice, when setting it manually, was to create a swap file (that was not the name) of as much as possible, which was double the ram. With only 2 o 4 MiB of ram it made a lot of sense to have as much swap as the system would allow. In Linux, there is no such limit, we can add as much as we like. Then we need to know how much we really need... which is difficult to predict, it depends on the workload or what applications we run. If you use hibernation, then the figure is same as ram. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkxDF4MACgkQU92UU+smfQWHqgCfW1V9rgwrbeyOfbaWxwMwEScT rbQAoI/628oohimvohFN+OeHKhsBWSF2 =PdjA -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org