From owner-freebsd-hackers@FreeBSD.ORG Fri May 25 20:46:12 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3E7C1065675 for ; Fri, 25 May 2012 20:46:12 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id D7AA98FC20 for ; Fri, 25 May 2012 20:46:11 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q4PKkAfQ031395; Fri, 25 May 2012 22:46:10 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q4PKkA2c031392; Fri, 25 May 2012 22:46:10 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 25 May 2012 22:46:10 +0200 (CEST) From: Wojciech Puchar To: Matthias Apitz In-Reply-To: <20120525183006.GA1259@tiny> Message-ID: References: <4fb7dfd6.736a980a.186d.ffff902f@mx.google.com> <20120519180901.GA1264@tiny> <20120525183006.GA1259@tiny> 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 passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Fri, 25 May 2012 22:46:10 +0200 (CEST) Cc: freebsd-hackers@freebsd.org, rozhuk.im@gmail.com Subject: Re: proper newfs options for SSD disk X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2012 20:46:12 -0000 > Talking about another question, related to file systems on SSD: > > My netbook with the two SSD has file systems mounted as: > > $ df -kh > Filesystem Size Used Avail Capacity Mounted on > /dev/ada0s1a 3.7G 567M 3.1G 15% / > /dev/ada1s1a 14G 8.7G 5.9G 60% /usr/local > /dev/md0 125M 88k 115M 0% /tmp try tmpfs instead od md backed filesystem for /tmp. Really it is better. > > Below /usr/local is also my (one and only) HOME dir; > > I'm on the way to reinstall all with 10-CURRENT and I'd like to crypt the > partition /dev/ada1s1a with geli(8). > > Any objections against running geli(8) on SSD? NONE. As i see you have one of these "famous" laptops with 4+16GB SSDs. they are quite slow (they have pendrive/SD style stupid translation hardware) i would recommend reducing writes even more eg. change syslog.conf to: *.* -/var/log/messages (all to one file, no forced sync) You may put /var/tmp in ramdisk too, but it break few things (doesn't matter for me) > > Should I split /dev/ada1 into two separate partitions, one for real > /usr/local and one for my HOME and only crypt this with geli(8)? i would make / on 16GB SSD (including /usr, /usr/local, don't divide to partitions) and geli encrypted home on 4GB SSD (whole device). if sometimes 4GB would be too little for /home then you would manually move things that don't need encryption somewhere else. Why? Your laptop have most probably slow CPU and it will make everything too slow if you make everything encrypted.