lkml.org 
[lkml]   [2001]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Swap size for a machine with 2GB of memory
From
Date
"Eric S. Raymond" <esr@thyrsus.com> writes:

> The Red Hat installation manual claims that the size of the swap partition
> should be twice the size of physical memory, but no more than 128MB.
>
> The screaming hotrod machine Gary Sandine and I built around the Tyan S2464
> has 2GB of physical memory. Should I believe the above formula? If not,
> is there a more correct one for calculating needed swap on machines with
> very large memory?

There is no magic formula for calculating the amount of swap space
needed. It really needs to be sized to the expected load on your box
plus some. If you seriously expect to be using swap, have swapsize >
memsize and figure the amount of virtual memory you have is swapsize.

With respect to swap partitions the current limit is about 64Gig.
You can actually make a larger swap partition but the kernel on x86
only uses 24 offset bits into that partition. The 128MB partition
existed but was removed long ago.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.099 / U:0.996 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site