Linux tool/command to check file system performance

What is the simplest way to check read/write performance to a specific location (e.g. a mounted iSCSI device).

I suspect I can't use hdparm because that's lower level. Am I right?


bonnie++ is an aging but good one, as well as iozone.


Found this link: Quick SAN Performance Test, NFS, iSCSI, IOZONE – Part I

time sh -c "dd if=/dev/zero of=/tmp/disk_write_test.tmp bs=64k count=125000 && sync"

Note from the article:

  • Use more than the machine's free memory to make sure caching isn't being taken into account

Or, to force the caching off

time sh -c "dd if=/dev/zero of=/mnt/home/disk_write_test.tmp bs=64k count=125000 oflag=direct"

I use sysbench:

sysbench --test=fileio prepare

sysbench --test=fileio --file-test-mode=rndrw run

sysbench --test=fileio --file-test-mode=seqrewr run

There are a lot of configuration options but that will give you a good idea.

Cheers


there are many tools available for the performance test. Like if you want to test sequencial read,random read/write etc. iozone is too much elaborate in its output. couple of others are also discussed here. file system performance test