Measure Linux IOPS for a running system
Solution 1:
Uhm... iostat
on my system shows the IOPS:
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 1.00 64.00 0.00 64 0
Might want to look at upgrading.
Solution 2:
Install sysstat
package if you don't have it already and then use command sar -d 1
. Watch the tps
column. It gives you at least the ballpark figure.
But remember that actual maximum number of IOPS varies heavily depending on your server workload. A server with lots of sequential access might get more IOPS than a one doing lots of random access.
Solution 3:
Look at nmon
as an option for a nicer presentation of the same data.
http://nmon.sourceforge.net/pmwiki.php