I'm noticing extremely slow write speeds within my VMs (virtio in on) and pveperf is show poor fsyncs/second. All my VM logical volumes reside on a mdadm software raid 5 consisting of three disks. hdparm is showing good read speeds from each disk and from the raid as a whole. Using dd as a write test to a LV on the raid is showing good write speeds. Any ideas why my fsyncs/second are so low? I certainly expect software raid to not be as fast as hardware of course, but this seems out of the ordinary. Please see below for details:
picard:~# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sda1[0] sdc1[2] sdb1[1]
1953524736 blocks level 5, 128k chunk, algorithm 2 [3/3] [UUU]
unused devices: <none>
picard:~# pveperf /mnt/test/
CPU BOGOMIPS: 38571.88
REGEX/SECOND: 1165217
HD SIZE: 3.94 GB (/dev/mapper/datavg-perftest)
BUFFERED READS: 114.84 MB/sec
AVERAGE SEEK TIME: 10.40 ms
FSYNCS/SECOND: 32.92
DNS EXT: 202.08 ms
DNS INT: 0.87 ms (snip)
picard:~# dd if=/dev/zero of=/mnt/test/blah bs=4k count=400000
400000+0 records in
400000+0 records out
1638400000 bytes (1.6 GB) copied, 12.8695 s, 127 MB/s
picard:~# hdparm -tT /dev/sdb
/dev/sdb:
Timing cached reads: 6208 MB in 2.00 seconds = 3104.91 MB/sec
Timing buffered disk reads: 270 MB in 3.01 seconds = 89.74 MB/sec
picard:~# hdparm -tT /dev/sdc
/dev/sdc:
Timing cached reads: 7432 MB in 2.00 seconds = 3717.09 MB/sec
Timing buffered disk reads: 268 MB in 3.05 seconds = 87.75 MB/sec
picard:~# hdparm -tT /dev/sdd
/dev/sdd:
Timing cached reads: 6918 MB in 2.00 seconds = 3460.67 MB/sec
Timing buffered disk reads: 170 MB in 3.03 seconds = 56.19 MB/sec
picard:~# hdparm -tT /dev/md0
/dev/md0:
Timing cached reads: 6872 MB in 2.00 seconds = 3437.10 MB/sec
Timing buffered disk reads: 478 MB in 3.02 seconds = 158.29 MB/sec
Thanks,
Kyle
picard:~# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sda1[0] sdc1[2] sdb1[1]
1953524736 blocks level 5, 128k chunk, algorithm 2 [3/3] [UUU]
unused devices: <none>
picard:~# pveperf /mnt/test/
CPU BOGOMIPS: 38571.88
REGEX/SECOND: 1165217
HD SIZE: 3.94 GB (/dev/mapper/datavg-perftest)
BUFFERED READS: 114.84 MB/sec
AVERAGE SEEK TIME: 10.40 ms
FSYNCS/SECOND: 32.92
DNS EXT: 202.08 ms
DNS INT: 0.87 ms (snip)
picard:~# dd if=/dev/zero of=/mnt/test/blah bs=4k count=400000
400000+0 records in
400000+0 records out
1638400000 bytes (1.6 GB) copied, 12.8695 s, 127 MB/s
picard:~# hdparm -tT /dev/sdb
/dev/sdb:
Timing cached reads: 6208 MB in 2.00 seconds = 3104.91 MB/sec
Timing buffered disk reads: 270 MB in 3.01 seconds = 89.74 MB/sec
picard:~# hdparm -tT /dev/sdc
/dev/sdc:
Timing cached reads: 7432 MB in 2.00 seconds = 3717.09 MB/sec
Timing buffered disk reads: 268 MB in 3.05 seconds = 87.75 MB/sec
picard:~# hdparm -tT /dev/sdd
/dev/sdd:
Timing cached reads: 6918 MB in 2.00 seconds = 3460.67 MB/sec
Timing buffered disk reads: 170 MB in 3.03 seconds = 56.19 MB/sec
picard:~# hdparm -tT /dev/md0
/dev/md0:
Timing cached reads: 6872 MB in 2.00 seconds = 3437.10 MB/sec
Timing buffered disk reads: 478 MB in 3.02 seconds = 158.29 MB/sec
Thanks,
Kyle