Sorry, I sent this only to Stuart.

---------- Forwarded message ----------
From: Pau <vim.u...@gmail.com>
Date: Sat, May 25, 2013 at 4:49 PM
Subject: Re: File system speed issues
To: Stuart Henderson <s...@spacehopper.org>


Hi,

un update on  5.3 GENERIC.MP#118 amd64.

 It used to be this for the encrypted partition:


pyrrha(p1)| time dd if=/dev/zero of=encrypted bs=1m count=1024
1024+0 records in
1024+0 records out
1073741824 bytes transferred in 45.626 secs (23533481 bytes/sec)
dd if=/dev/zero of=encrypted bs=1m count=1024  0.00s user 40.56s system 88%
cpu 45.637 total

Now it's

$ time dd if=/dev/zero of=encrypted bs=1m count=1024
1024+0 records in
1024+0 records out
1073741824 bytes transferred in 30.895 secs (34753430 bytes/sec)
    0m30.90s real     0m0.00s user     0m29.76s system


So 31 secs instead of ~46

It's an improvement!

On the unencrypted partition, the speed remains the same:

$ time dd if=/dev/zero of=nonencrypted bs=1m count=1024

1024+0 records in
1024+0 records out
1073741824 bytes transferred in 4.832 secs (222213080 bytes/sec)
    0m4.84s real     0m0.00s user     0m0.93s system


Cheers,

Pau


On Tue, May 14, 2013 at 12:18 PM, Stuart Henderson <s...@spacehopper.org>wrote:

> On 2013-05-13, Pau <vim.u...@gmail.com> wrote:
> > For comparison, I asked a colleague who is using the same laptop model
> > (thinkpad x220)
>
> Which CPU? If it's i5/i7 then moving to -current should improve things as
> it uses the AESNI instructions on the CPU to speed up softraid crypto..
>
> > and same hw to run the test on his, which is running ubuntu
> > (argh!) and a non-encrypted filesystem. He got 0.5 seconds. I.e. ~ 10
> times
> > faster than OpenBSD without encryption.
>
> > linux is by far the fastest (0.5 sec), followed by OpenBSD (4.2 sec) and,
> > the last one, iOS (~13 sec !!! I wonder what are the advantages of an
> > airbook... I thought they performed well)
>
> I suspect that this test on Linux may return from dd before committing
> the data to disk, whereas I suspect the others finish writing before they
> return.
>
> > Note that I am not asking this in misc, because I want to keep my skin
> > attached to my body... :)
>
> It's usually possible to tell from reading a few words of a mail
> on misc@ whether the sender is an idiot. (Actually, half the time you
> can tell just by looking at the email address). If so, delete and
> move on, then they will have just wasted their own time and a bit
> of bandwidth.
>
>
> _______________________________________________
> Openbsd-newbies mailing list
> Openbsd-newbies@sfobug.theapt.org
> http://mailman.theapt.org/listinfo/openbsd-newbies
>
_______________________________________________
Openbsd-newbies mailing list
Openbsd-newbies@sfobug.theapt.org
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to