Date: Fri, 16 Nov 2012 21:38:09 -0700 (MST) From: Warren Block <wblock@wonkity.com> To: Gary Aitken <freebsd@dreamchaser.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: 9.0 crash, ssd or filesystem problem? Message-ID: <alpine.BSF.2.00.1211162119450.2013@wonkity.com> In-Reply-To: <50A6FFC0.3050902@dreamchaser.org> References: <50A53FF1.7050806@dreamchaser.org> <alpine.BSF.2.00.1211151550050.66706@wonkity.com> <50A602AB.2060307@dreamchaser.org> <alpine.BSF.2.00.1211160746190.74281@wonkity.com> <50A66659.5040406@dreamchaser.org> <alpine.BSF.2.00.1211161142300.76158@wonkity.com> <50A6FFC0.3050902@dreamchaser.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1211162119450.2013>