Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2014 11:22:07 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        Arthur Chance <freebsd@qeng-ho.org>, FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Re: How much swap space for a 32 GB RAM system?
Message-ID:  <alpine.BSF.2.11.1407221119110.80885@wonkity.com>
In-Reply-To: <20140722191548.e3945a1e.freebsd@edvax.de>
References:  <53CE8BB8.7030303@qeng-ho.org> <20140722191548.e3945a1e.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1407221119110.80885>