raidtest for zfs

Михаил Монашёв softsearch at gmail.com
Fri Sep 21 09:33:48 PDT 2007


> > How to run raidtest (
> > http://www.freebsdsoftware.org/benchmarks/raidtest.html ) on zfs?
> >
> > diskinfo dos'n work.
>
> raidtest is for block device testing. If you want to test ZFS with it,
> you need to create ZVOL with 'zfs create -V' command, eg.
>
>         # zpool create tank raidz da{0,1,2,3,4}
>         # zfs create -V 100g tank/vol
>         # diskinfo -v /dev/zvol/tank/vol



I get strange and fantastic results:

> raidtest genfile -s 209715200 -S 512 -n 50000 -r -f
File raidtest.data generated.
Number of READ requests: 50000.
Number of WRITE requests: 0.
Number of bytes to transmit: 3279956992.

> raidtest test -d /dev/zvol/tank/vol -n 10
Read 50000 requests from raidtest.data.
Number of READ requests: 50000.
Number of WRITE requests: 0.
Number of bytes to transmit: 3279956992.
Number of processes: 10.
Bytes per second: 245146813
Requests per second: 3737
                                 ^^^^^ - too big!

> raidtest genfile -s 209715200 -S 512 -n 50000 -f
File raidtest.data generated.
Number of READ requests: 25046.
Number of WRITE requests: 24954.
Number of bytes to transmit: 3311506944.

> raidtest test -d /dev/zvol/tank/vol -n 10
Read 50000 requests from raidtest.data.
Number of READ requests: 25046.
Number of WRITE requests: 24954.
Number of bytes to transmit: 3311506944.
Number of processes: 10.
Bytes per second: 195043585
Requests per second: 2944
                                 ^^^^^ - too big!


The real results is:

> raidtest test -d /dev/raid3/g3 -n 10
Read 50000 requests from raidtest.data.
Number of READ requests: 50000.
Number of WRITE requests: 0.
Number of bytes to transmit: 3316146176.
Number of processes: 10.
Bytes per second: 11398078
Requests per second: 171

What is wrong?

How to run raidtest correctly on /dev/zvol/tank/vol ?


-- 
Michael


More information about the freebsd-geom mailing list