lkml.org 
[lkml]   [1998]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 128MB Swap-Space Limit
At 15:37 11/08/98 +0200, Thomas Scheunemann wrote:
>
>Is there any deeper reason, why a single swap-space is limited to 128MB (on
>i386)?
>

Note: this is from memory (and swapped back in, now).
Swapping is done by pages, 4KB at a time. A separate page of 4KB is used
by the kernel as a bitmap to describe the state of the various pages
inside the swap file. Such a bitmap contains 32K bits, each bit describing
the validity of a 4KB piece of the swapfile. Therefore, swapfiles are
limited to 32K*4KB = 128MB.

And yes, it's easy to enhance this. Either you keep more pages for your
swap bitmap or you activate more than one swapfile.
Not much difference, really.

HTH,



Marnix Coppens

---
Reality is that which | Artificial Intelligence
when you stop believing | stands no chance against
in it doesn't go away. (Philip K. Dick) | Natural Stupidity.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.050 / U:8.992 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site