From owner-freebsd-questions@FreeBSD.ORG Sat Nov 17 04:38:14 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C3CBC99 for ; Sat, 17 Nov 2012 04:38:14 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id C40FA8FC0C for ; Sat, 17 Nov 2012 04:38:13 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id qAH4c922002890; Fri, 16 Nov 2012 21:38:09 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id qAH4c9O1002887; Fri, 16 Nov 2012 21:38:09 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Fri, 16 Nov 2012 21:38:09 -0700 (MST) From: Warren Block To: Gary Aitken Subject: Re: 9.0 crash, ssd or filesystem problem? In-Reply-To: <50A6FFC0.3050902@dreamchaser.org> Message-ID: References: <50A53FF1.7050806@dreamchaser.org> <50A602AB.2060307@dreamchaser.org> <50A66659.5040406@dreamchaser.org> <50A6FFC0.3050902@dreamchaser.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Fri, 16 Nov 2012 21:38:09 -0700 (MST) Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 04:38:14 -0000 On Fri, 16 Nov 2012, Gary Aitken wrote: > On 11/16/12 12:10, Warren Block wrote: > >> Additional SSD suggestions: when creating partitions, leave out the swap >> partition. If you have lots of memory, leave out the /tmp partition. Add >> that extra space to the /usr partition. >> >> Format the UFS filesystems with -Ut, for soft updates and TRIM support. >> (Make sure your SSD supports TRIM, almost all do.) (I don't use soft >> updates journaling.) >> >> Use dd(1) to make a zero-filled file on /usr somewhere, say /usr/swap. >> Make it the size you want swap to be, and do not make it a sparse file. >> Tell the system to use the swapfile in /etc/rc.conf: >> >> swapfile="/usr/swap" >> >> Use tmpfs for /tmp in /etc/fstab: >> >> tmpfs /tmp tmpfs rw,mode=01777 0 0 >> >> It's possible to limit the size, but not necessary. This /tmp will be >> cleared on reboot. > > Not necessary because it is constrained by the swap file size? Yes, but also because /tmp usually doesn't need much space. On this desktop system, du shows all of /tmp is only 52K.