ZFS 2GB Swap

/zfs-2gb-swap 2009-02-21T09:12:39+00:00

As more and more people switch to ZFS for their root filesystem, more and more people are actually starting to encounter the misconception that you can only have 2GB of swap on ZFS root.

This is not the case. The misconception stems from a misunderstanding of the following section in the ZFS Admin Guide:

During an initial installation or a Solaris Live Upgrade from a UFS file system, a swap area is created on a ZFS volume in the ZFS root pool. The swap area size is based on half the size of physical memory, but no more than 2 Gbytes and no less than 512 Mbytes.

This could be better written and should be interpreted as...

The swap and dump areas created during installation will be the smaller of 1/2 physical memory or 2GB.

Once the OS has been installed, you can quite happily increase the size of swap to suit your needs, without a reboot, as Chris details here.

Update: I've just been informed that the Solaris 10u7 documentation will be changed to make this a lot clearer and reduce the chances of confusion.

Copyright © 2005 - 2018 Colin Seymour All rights reserved. Privacy Policy.
Check out the feed if you do the RSS/Atom thing.