Re: Maximum size of a swap partition

From: KAMEZAWA Hiroyuki
Date: Fri May 29 2009 - 03:08:16 EST

On Fri, 29 May 2009 15:47:01 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:

> I'm not sure whether there are other limitations. But maybe enough big.
I missed the another story.

For managing swap, the kernel uses 2bytes per 1 swap entry.
Then, if swap parttion is 1Gbytes, the kernel uses 512k bytes of memory.

in x86, this memory is allocated from vmalloc() area (you can see it in meminfo)
and it has only 80?MB. And there are other users of this area.

Then, in real x86-32bit world, you can't use verrrrry big swap device.

Then, 16GB=8MB in the kernel (or some more) is realistic limitation for usual


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at