The problem I am facing is on my Debian box (HP MicroServer N40L) running ZFS, which is compiled from source downloaded from zfsonlinux.com, seems to perform poorly.
The pool is created from 3 identical 2TB harddrive (Seagate, SATA, 5900rpm, 6GB/s). System is running on another 250GB (7200rpm, unraid) hard drive.The command I used to create my zpool is zpool create tank raidz hd1ID hd2ID hd3ID
. zpool status tank
indicates all is well. After I got suspicious, I used bonnie (version 1.96) to test the performance bonnie -u root:root -x 5 -s 4096
and here is some of the numbers I got back (the last row is the numbers from the 250GB system drive, which indicates the unraid hd is much faster than my zpool)
rewrite seeks ran_create putc_latency rewrite_latency seeks_latency
11275 228246 2249 3770 116ms 191ms
10556 229326 7133 5388 147ms 247ms
10989 227938 13337 13569 128ms 141ms
11025 227938 873 3679 117ms 224ms
10926 229491 3580 6186 119ms 231ms
64389 111633 29779 30298 47190us 51692us
I also did time dd if=/dev/zero of=foo bs=1048576 count=1024
and got
1024+0 records in
1024+0 records out
1073741824 bytes (1.1GB) copied, 83.3947 s, 12.9 MB/s
real 1m23.397s
user 0m0.000s
sys 0m1.760s
Same command on the system drive is
1024+0 records in
1024+0 records out
1073741824 bytes (1.1GB) copied, 9.52386 s, 113 MB/s
real 0m9.752s
user 0m0.00s
sys 0m2.984s
It looks like my zpool is running very slow. Did I do anything wrong when I created my zpool? How can I tune it to make it perform the way it should be?