From owner-freebsd-questions@FreeBSD.ORG Sat Nov 17 20:07:57 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 269E2F08 for ; Sat, 17 Nov 2012 20:07:57 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id D42778FC14 for ; Sat, 17 Nov 2012 20:07:56 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id qAHK7teu044487; Sat, 17 Nov 2012 13:07:55 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Message-ID: <50A7EE9B.4070003@dreamchaser.org> Date: Sat, 17 Nov 2012 13:07:55 -0700 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121116 Thunderbird/16.0.2 MIME-Version: 1.0 To: Warren Block Subject: Re: 9.0 crash, ssd or filesystem problem? References: <50A53FF1.7050806@dreamchaser.org> <50A602AB.2060307@dreamchaser.org> <50A66659.5040406@dreamchaser.org> <50A6FFC0.3050902@dreamchaser.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Sat, 17 Nov 2012 13:07:55 -0700 (MST) Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 20:07:57 -0000 On 11/16/12 21:38, Warren Block wrote: > 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 When using the above in /etc/fstab to establish a tmp file, how does the size of /tmp get established? Is it limited only by the available swap, or is it possible to put an upper bound on it that is smaller than swap? e.g. if I built it manually: mdconfig -a -t swap -s 1g -u 1 newfs -U /dev/md1 mount /dev/md1 /tmp chmod 1777 /tmp wouldn't it be limited to 1g of swap space? Gary