On Nov 11 07:09:36, Marco Peereboom wrote:
> Bonnie is not a realistic load, ever.  Therefore the numberis are really
> not useful.  If one insists on getting an idea of what crypto can run
> then do: dd if=/dev/rsd2c of=/dev/null bs=1m count=100
> Where rsd2c is the raw crypto disk.


This is how my crypto softraid device comes to existence:

# disklabel sd0 | grep RAID
  k:        406781865         83441610    RAID       

# bioctl -c C -l /dev/sd0k softraid0
scsibus3 at softraid0: 1 targets
sd1 at scsibus3 targ 0 lun 0: <OPENBSD, SR CRYPTO, 003> SCSI2 0/direct fixed
sd1: 198623MB, 512 bytes/sec, 406781786 sec total


This is a test of the reading speed, as adviced above:

# dd if=/dev/rsd1c of=/dev/null bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 4.696 secs (22326954 bytes/sec)

# dd if=/dev/rsd1c of=/dev/null bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 4.710 secs (22260383 bytes/sec)

# dd if=/dev/rsd1c of=/dev/null bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 4.712 secs (22249807 bytes/sec)


As opposed to reading the underlying device directly:

# dd if=/dev/rsd0k of=/dev/null bs=1m count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 1.616 secs (64876691 bytes/sec)

# dd if=/dev/rsd0k of=/dev/null bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 1.569 secs (66799470 bytes/sec)

# dd if=/dev/rsd0k of=/dev/null bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 1.569 secs (66795045 bytes/sec)


This is a test of the writing speed, in analogy with the above
(that's what's "slow" for the OP):

# dd of=/dev/rsd1c if=/dev/zero bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 4.728 secs (22173665 bytes/sec)

# dd of=/dev/rsd1c if=/dev/zero bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 4.699 secs (22311243 bytes/sec)

# dd of=/dev/rsd1c if=/dev/zero bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 4.691 secs (22351435 bytes/sec)


This is what the underlying device can write:

# dd of=/dev/rsd0k if=/dev/zero bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 1.630 secs (64309537 bytes/sec)

# dd of=/dev/rsd0k if=/dev/zero bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 1.630 secs (64310444 bytes/sec)

# dd of=/dev/rsd0k if=/dev/zero bs=1m count=100 
100+0 records in
100+0 records out
104857600 bytes transferred in 1.675 secs (62581676 bytes/sec)


To summarize:

        read    write
rsd0k   65M/s   64M/s
rsd1c   21M/s   21M/s


[OP:]
> >>>> when using softraid crypto with OpenBSD 4.6-current I never get more
> >>>> than ~10-11 MB/s disk writing speed even though the disk (WD Raptor 73
> >>>> GB) itself, without crypto, can do way more.

How exactly do you 'write'?
What numbers do you get when you write like I do above?
How fast can the disk itself write (using the same 'measurement')?

Reply via email to