swap: which is the maximum size allowed?

Eriberto eriberto at eriberto.pro.br
Sun Jan 28 20:47:14 UTC 2007

Well, from mkswap manual:

"The maximum useful size of a swap area now depends on the architecture.
  It is roughly 2GiB on i386, PPC, m68k,  ARM,  1GiB on sparc, 512MiB on
mips, 128GiB on alpha and 3TiB on sparc64".

But, mkswap man is old (1999). However, from Linux Partition HOWTO:

"footnote: "official" max swap size: With kernel 2.4, the limit is 64
swap spaces at a maximum of 64Gb each, although this is not reflected in
the man page for mkswap. With the 64 bit opteron on the 2.6 kernel, 128
swap areas are permitted, each a whopping 16 Tb! (thanks to Peter Chubb
for the calculation)"

Conclusion: the swap has a limit.


Eriberto - Brazil

Ben Collins escreveu:
> On Sun, 2007-01-28 at 18:11 -0200, Eriberto wrote:
> There is no limit. Generally, you want around 2 to 2.5 times your ram
> size in swap (e.g. 2 to 2.5Gigs of swap for 1Gig of ram).

More information about the kernel-team mailing list