Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 May 2012 10:27:45 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-hackers@freebsd.org, rozhuk.im@gmail.com
Subject:   Re: proper newfs options for SSD disk
Message-ID:  <20120527082745.GA2591@tinyCurrent>
In-Reply-To: <alpine.BSF.2.00.1205261550110.70207@wojtek.tensor.gdynia.pl>
References:  <alpine.BSF.2.00.1205182209010.9350@wojtek.tensor.gdynia.pl> <4fb7dfd6.736a980a.186d.ffff902f@mx.google.com> <20120519180901.GA1264@tiny> <20120525183006.GA1259@tiny> <alpine.BSF.2.00.1205252240260.31165@wojtek.tensor.gdynia.pl> <20120525225839.GA7347@server.rulingia.com> <alpine.BSF.2.00.1205261550110.70207@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <guru@unixarea.de> - 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120527082745.GA2591>