Ideal Swap Partition Size

Mikkel L. Ellertson mikkel at infinity-ltd.com
Mon Jan 19 20:35:24 UTC 2009


Rick Stevens wrote:
> 
> Note you're still limited to eight swap areas, but the 2GB limit per
> area goes away.  Swap files aren't as fast as swap partitions, but
> that's part of the penalty you pay for getting rid of the 2GB limit.
> Your mileage may vary, batteries not included, etc. etc.
> 
From the mkswap man page:

The maximum useful size of a swap area depends on the architecture
and the  kernel  version.  It is roughly 2GiB on i386, PPC, m68k,
ARM, 1GiB on sparc, 512MiB on mips, 128GiB on alpha and 3TiB on
sparc64. For kernels after 2.3.3 there is no such limitation.

...

Presently, Linux allows 32 swap areas (this was 8 before Linux
2.4.10). The areas in use can be seen in the file /proc/swaps (since
2.1.25).

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090119/ec22c9ed/attachment-0001.sig>


More information about the fedora-list mailing list