I want to calculate the average harddisk I/O.
Here i don't want to calculate the i/o currently performing on the system but also the capability of hard drive.
Thank you
I want to calculate the average harddisk I/O.
Here i don't want to calculate the i/o currently performing on the system but also the capability of hard drive.
Thank you
Well there are lots of tools here ...
In order to know what io is happing on your system right now you could make use of iostat this will show you the total io per device, if you add a parameter (iostat 1) it will keep showing you the data each second.
vmstat (see the io columns) shows you aggregated io for the entire system.
In order to get an idea on the performance of a hard drive you could use hdparm -tT /dev/sda (replace /dev/sda by the device to test), this will perform timing of cache reads (-T) and timing of device reads (-t). This will should you the read performance of the device in general.
These are the 'polite' ways to get an idea of usage and throughput and allow you to do some comparisons
If you really want to stress things (e.g. simulate daemon behavior) you should take a look at more specialised benchmarking tools such as bonnie++ iozone and friends. Keep in mind that these will already focus on filesystem benchmarking as well and not only physical or os bound parameters.
In addition to iostat and vmstat, dstat is very nice.