From owner-freebsd-questions@FreeBSD.ORG Tue Jul 22 17:22:15 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EA1AFA40 for ; Tue, 22 Jul 2014 17:22:15 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 961792EA3 for ; Tue, 22 Jul 2014 17:22:15 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s6MHMAXs098016 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 22 Jul 2014 11:22:10 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s6MHM7Bp098011; Tue, 22 Jul 2014 11:22:07 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 22 Jul 2014 11:22:07 -0600 (MDT) From: Warren Block To: Polytropon Subject: Re: How much swap space for a 32 GB RAM system? In-Reply-To: <20140722191548.e3945a1e.freebsd@edvax.de> Message-ID: References: <53CE8BB8.7030303@qeng-ho.org> <20140722191548.e3945a1e.freebsd@edvax.de> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Tue, 22 Jul 2014 11:22:10 -0600 (MDT) Cc: Arthur Chance , FreeBSD-Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2014 17:22:16 -0000 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.