From owner-freebsd-hackers@FreeBSD.ORG Sun May 27 08:28:01 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 5B9A01065670 for ; Sun, 27 May 2012 08:28:01 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id DC7DB8FC1B for ; Sun, 27 May 2012 08:28:00 +0000 (UTC) Received: from [188.174.50.77] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SYYpK-0004Dq-Oi; Sun, 27 May 2012 10:27:51 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q4R8Rnpu002627; Sun, 27 May 2012 10:27:49 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id q4R8Rjeq002626; Sun, 27 May 2012 10:27:45 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 27 May 2012 10:27:45 +0200 From: Matthias Apitz To: Wojciech Puchar Message-ID: <20120527082745.GA2591@tinyCurrent> References: <4fb7dfd6.736a980a.186d.ffff902f@mx.google.com> <20120519180901.GA1264@tiny> <20120525183006.GA1259@tiny> <20120525225839.GA7347@server.rulingia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.50.77 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 Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2012 08:28:02 -0000 El día Saturday, May 26, 2012 a las 04:01:54PM +0200, Wojciech Puchar escribió: > >> Why? Your laptop have most probably slow CPU and it will make everything > >> too slow if you make everything encrypted. > > > > I'd suggest some experiments - create a largish RAMdisk with and without > > GELI and see how the performance compares (this will be a lot faster than > > converting your SSD as well as saving a full-SSD erase/write cycle). > > right. DO TESTs. > > mdconfig -a -t swap -s512m -u 0 > dd if=/dev/zero of=/dev/md0 bs=128k count=4k > dd if=/dev/md0 of=/dev/null bs=128k count=4k > > geli init -s 2048 /dev/md0 > geli attach /dev/md0 > dd if=/dev/md0.eli of=/dev/null bs=128k count=4k (*) > dd if=/dev/zero of=/dev/md0.eli bs=128k count=4k (*) > geli detach /dev/md0 > mdconfig -d -u 0 I did the same tests with my laptop Acer Aspire One D250 and the small netbook EeePC 900: Acer Aspire One D250: $ dmesg | fgrep CPU: CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (1596.22-MHz 686-class CPU) # mdconfig -a -t swap -s512m -u 0 # dd if=/dev/zero of=/dev/md0 bs=128k count=4k 536870912 bytes transferred in 2.252701 secs (238323196 bytes/sec) # dd if=/dev/md0 of=/dev/null bs=128k count=4k 536870912 bytes transferred in 1.355759 secs (395992908 bytes/sec) # geli init -s 2048 /dev/md0 Enter new passphrase: ... # geli attach /dev/md0 Enter passphrase: # dd if=/dev/md0.eli of=/dev/null bs=128k count=4k 536868864 bytes transferred in 40.844322 secs (13144272 bytes/sec) # dd if=/dev/zero of=/dev/md0.eli bs=128k count=4k 536868864 bytes transferred in 43.093812 secs (12458143 bytes/sec) # geli detach /dev/md0 # mdconfig -d -u 0 EeePC 900 # dmesg | fgrep CPU: CPU: Intel(R) Celeron(R) M processor 900MHz (900.11-MHz 686-class CPU) # mdconfig -a -t swap -s512m -u 1 # dd if=/dev/zero of=/dev/md1 bs=128k count=4k 536870912 bytes transferred in 2.072289 secs (259071449 bytes/sec) # dd if=/dev/md1 of=/dev/null bs=128k count=4k 536870912 bytes transferred in 1.439256 secs (373019761 bytes/sec) # # geli init -s 2048 /dev/md1 Enter new passphrase: Reenter new passphrase: ... # geli attach /dev/md1 Enter passphrase: # dd if=/dev/md1.eli of=/dev/null bs=128k count=4k 536868864 bytes transferred in 35.093015 secs (15298454 bytes/sec) # dd if=/dev/zero of=/dev/md1.eli bs=128k count=4k 536868864 bytes transferred in 38.044995 secs (14111419 bytes/sec) # geli detach /dev/md1 # mdconfig -d -u 1 As you can see the EeePC with it's Intel Celeron CPU of only 900 MHz is even faster then the Acer with Atom CPU; BTW: On the EeePC I run 10-CURRENT, KDE 3.5.10 and never encounter performance issues while reading, writing etc. Concerning your hint installing the systen on the second SSD of around 16 GByte (marketing GBytes :-)), the BIOS by itself is unable to boot from; one has to go (by pressing ESC) to the boot menu to pick it up as current boot device; any idea how this could be changed? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5