Messages in this thread | | | Date | Fri, 29 May 2009 16:06:07 +0900 | From | KAMEZAWA Hiroyuki <> | Subject | Re: Maximum size of a swap partition |
| |
On Fri, 29 May 2009 15:47:01 +0900 KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> 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 users.
Thanks, -Kame
| |