Maximum Swapsize

Daniel O'Connor doconnor at gsoft.com.au
Tue Apr 11 01:18:27 UTC 2006


On Tuesday 11 April 2006 01:47, Kris Kennaway wrote:
> On Mon, Apr 10, 2006 at 06:13:07PM +0200, Michael Schuh wrote:
> > Hello @all,
> >
> > last weekend i have setted up an new Machine with
> > 6.1-Beta4. By Installation i have made an Swappartition
> > with the size of 4GB after install in runtime in top
> > it sseems to me that the maximum swap-size is
> > limitied to 2GB or better to INT_MAX ?
>
> It's limited to 16GB on i386 (or maybe 16GB per swap device, I
> forget).  You need a patch if you want to use this much, to avoid
> deadlocks - but nothing limits it out of the box.

Of course if you actually use this much swap your machine will be incomparably 
slow..

The old "swap size = 2x RAM" rule is no longer applicable unless you have a 
very special application.

IMO if you end up using more than 512MB of swap you need more RAM, or less 
applications :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060411/90b629bb/attachment.pgp


More information about the freebsd-stable mailing list