[lkml]   [2009]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Maximum size of a swap partition
On Fri, 29 May 2009 15:47:01 +0900
KAMEZAWA Hiroyuki <> 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


 \ /
  Last update: 2009-05-29 09:11    [W:0.039 / U:3.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site