Measuring IOPS in Linux
I'm a big fan of iozone myself
Generally you will want to use a benchmark utility like fio. When measuring the amount of IOPs keep in mind that you need to think about things such as:
- Block size
- If these are writes, reads, or a mixture
- If the activity is sequential or random
- The number of outstanding requests
These will all effect the amount of IOPs you get. You want to make sure that with these tests you consider the response time it takes to fulfill these requests in the results.
Also remember when performing these tests you want to make sure that you flush the file cache (Howto here: deleting linux cached ram) before each test and that your test file is larger than any controller/disk caches.