I have a RAIDz configuration, with 5 sata hard disk. I create two file system, one with compression and checksum on, another one with both off.
I use following command to do the read and write test on both file system. Without compression and checksum, the performance is good:
With compression and checksum, write is good, but read is soo poor:
After some test, I found it's compresssion, as long as I have compression on, write speed very stable, but with if I set count = 300000, the read speed could reach 219MBps, if I set count = 524288 (512M), read speed drop to 11M again. So, compression only good on small files?
ahci enabled, kmem_size: 5G, total memory 8G
Any idea what I did wrong?
Thanks
Noodle
I use following command to do the read and write test on both file system. Without compression and checksum, the performance is good:
Code:
write:
/usr/bin/time -h dd if=/dev/zero of=test.file bs=1024 count=3000000
3000000+0 records in
3000000+0 records out
3072000000 bytes transferred in 29.320816 secs (104771982 bytes/sec) (99.9MBps)
read:
/usr/bin/time -h dd if=test.file of=/dev/zero bs=1024 count=3000000
3000000+0 records in
3000000+0 records out
3072000000 bytes transferred in 8.882904 secs (345832856 bytes/sec) (329MBps)
With compression and checksum, write is good, but read is soo poor:
Code:
Write:
/usr/bin/time -h dd if=/dev/zero of=test.file bs=1024 count=3000000
3000000+0 records in
3000000+0 records out
3072000000 bytes transferred in 23.105969 secs (132952659 bytes/sec) (126MBps)
read:
/usr/bin/time -h dd if=test.file of=/dev/zero bs=1024 count=3000000
3000000+0 records in
3000000+0 records out
3072000000 bytes transferred in 246.525695 secs (12461176 bytes/sec) (11MBps)
4m6.52s real 1.10s user 4m4.70s sys
After some test, I found it's compresssion, as long as I have compression on, write speed very stable, but with if I set count = 300000, the read speed could reach 219MBps, if I set count = 524288 (512M), read speed drop to 11M again. So, compression only good on small files?
ahci enabled, kmem_size: 5G, total memory 8G
Any idea what I did wrong?
Thanks
Noodle