Max swap size ?

Geert Uytterhoeven geert at
Wed Dec 5 03:20:56 EST 2001

On 4 Dec 2001, Michel [ISO-8859-1] Dänzer wrote:
> On Tue, 2001-12-04 at 00:04, Christopher Murtagh wrote:
> >  I have a machine running YDL (Dual 800Mhz, 1GB RAM) with a 2.4.13 SMP
> > kernel (YellowDog's stock SMP kernel) that has a 512 MB swap partition.
> > When I tried to install on other machines, they wouldn't boot with a swap
> > partition that big, but for some reason this one did. It wasn't until
> > after the other machines wouldn't boot did I notice in the TerraSoft docs
> > that 256MB was the max.
> That used to be the case before kernel 2.2 IIRC. Nowadays the limit is
> in the gigabytes. FWIW I'm using a 400 meg swap partition without
> problems.

The limit used to be 128 MiB, not 256 MiB. They used one page as a bitmask to
mark swap pages that were in use, hence 4096*8*4kiB = 128 MiB.



Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

** Sent via the linuxppc-dev mail list. See

More information about the Linuxppc-dev mailing list