Re: Slow Performance on Encrypted svnd

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: OpenBSD Misc <misc@...>
Date: Thursday, November 15, 2007 - 7:36 pm

I experimented with a few more things, but nothing helped. Someone said
run a bonnie++ benchmark to verify the performance. bonnie++ basically
told me what dd did, that svnd backed by a file is slow and svnd backed
by a disk or partition is floppy disk slow.

Nonetheless, the bonnie++ results may provide some insight to the
problem for an experienced guru. What I found interesting is that the
CPU usage is really low for writes and rewrites when svnd is backed by
the whole disk. This is also the slowest configuration.

It seems like there may be some alignment issues between the underlying
storage device and the svnd device. That's why I was trying all
combinations of block and fragment sizes, cylinders per group,
geometries (CHS) for fdisk, etc. Hopefully someone can shed some light
on this problem.

bonnie++ benchmark
------------------

wd0d (slow old disk)
Version 1.03 ------Sequential Output------ --Sequential Input-
--Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
--Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP
/sec %CP
foo.mokaz.com 40M 4956 13 4934 4 2950 2 8622 30 8754 3
183.1 0

wd1d (fast new disk)
Version 1.03 ------Sequential Output------ --Sequential Input-
--Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
--Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP
/sec %CP
foo.mokaz.com 40M 45424 97 42832 38 10362 7 26344 91 47501 17
366.7 1

svnd0a (ass. w/ wd1c; fdisk: used disk/bios geometry)
Version 1.03 ------Sequential Output------ --Sequential Input-
--Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
--Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP
/sec %CP
foo.mokaz.com 40M 230 3 235 2 3609 63 6786 67 8615 57
131.3 13

svnd0a (ass. w/ wd1c; fdisk: used OpenBSD MBR partition geometry)
Version 1.03 ------Sequential Output------ --Sequential Input-
--Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
--Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP
/sec %CP
foo.mokaz.com 40M 230 3 235 2 3641 61 6594 66 8637 58
137.6 13

svnd0a (ass. w/ wd1a; fdisk -c 6659 -h 5 -s 63 -i svnd0)
Version 1.03 ------Sequential Output------ --Sequential Input-
--Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
--Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP
/sec %CP
foo.mokaz.com 40M 1462 18 1751 18 5404 88 9551 89 13559 83
168.0 14

svnd0a (ass. w/ 500MB random data filled file on wd1d)
Version 1.03 ------Sequential Output------ --Sequential Input-
--Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block--
--Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP
/sec %CP
foo.mokaz.com 40M 8085 99 9444 99 6324 93 10517 96 15885 97
202.6 15

Clint Pachl wrote:

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Slow Performance on Encrypted svnd, Clint Pachl, (Wed Nov 14, 6:02 am)
Re: Slow Performance on Encrypted svnd, Clint Pachl, (Thu Nov 15, 7:36 pm)
Re: Slow Performance on Encrypted svnd, Ted Unangst, (Fri Nov 16, 2:32 pm)
Re: Slow Performance on Encrypted svnd, bofh, (Fri Nov 16, 5:38 pm)
Re: Slow Performance on Encrypted svnd, Nick Guenther, (Fri Nov 16, 4:55 pm)
Re: Slow Performance on Encrypted svnd, Ted Unangst, (Fri Nov 16, 6:34 pm)
Re: Slow Performance on Encrypted svnd, Die Gestalt, (Fri Nov 16, 9:46 am)
Re: Slow Performance on Encrypted svnd, Nick Guenther, (Thu Nov 15, 10:22 am)
Re: Slow Performance on Encrypted svnd, Die Gestalt, (Thu Nov 15, 12:07 pm)
Re: Slow Performance on Encrypted svnd, knitti, (Wed Nov 14, 7:41 am)
Re: Slow Performance on Encrypted svnd, Clint Pachl, (Wed Nov 14, 4:51 pm)
Re: Slow Performance on Encrypted svnd, knitti, (Wed Nov 14, 6:36 pm)
Re: Slow Performance on Encrypted svnd, Clint Pachl, (Wed Nov 14, 6:54 pm)