Re: Maximum swap space?

Randy.Dunlap
2003-06-07T17:36:27Z

> I am somewhat confused about how much swap space you can have with a 2.4
> series kernel. If I read the mkswap man page, I get the impression that I
> could have up to 8x2GB of swap space for a total of 16 GB, but reading the
> RedHat reference guide, it says 2GB maximum.
>
> I presume 2.5 kernels have much higher limits?
> --

Hi,

2.5 limits are the same as 2.4.recent AFAIK, but swapfiles in 2.5 work as
well (fast) as swap partitions if I recall Andrew Morton's comments
correctly.

>From http://www.xenotime.net/linux/doc/swap-mini-howto.txt:

3. Swap space limits

Linux 2.4.10 and later, and Linux 2.5 support any combination of swap
files or swap devices to a maximum number of 32 of them. Prior to Linux
2.4.10, the limit was any combination of 8 swap files or swap devices. On
x86 architecture systems, each of these swap areas has a limit of 2 GiB.

~Randy