How much swap space for a 32 GB RAM system?
wblock at wonkity.com
Tue Jul 22 17:22:16 UTC 2014
On Tue, 22 Jul 2014, Polytropon wrote:
> On Tue, 22 Jul 2014 17:05:12 +0100, Arthur Chance wrote:
>> I'm getting a new machine with 32 GB of memory. The old "twice physical
>> memory" sizing seems ridiculous, so how big should I make swap? Do I
>> even need swap with this much memory?
> Need? Probably not, but you _never_ know... So preparing
> a file-backed swap could be a nice solution: you do not
> have to dedicate a fixed size partition for swap, and
> depending on your disk setup (maybe SSD?) the speed (_if_
> it gets in use) will be good enough. In order to do this,
> you use dd to create a sparse file,
File yes, sparse file no. Bad Things(TM) may happen with a sparse file.
> configure it as a
> memory disk, and enable it with swapctl.
In 10.x, this can be done in /etc/fstab.
More information about the freebsd-questions