I am working on getting 'Average read time (ms)' and 'Average write time(ms)' from iostat -xnp command.In linux there is a '/proc/diskstats command, which gives me 'Time spent in reading millis' and 'Time spent in writing millis and 'number of reads completed', and 'writes completed'. So, i can divide 'Time spent in reading' with 'Number of reads completed' to get the average read time(ms).To derive the similar result, i am using the below equation. Please correct if its wrong.example output of iostat:------------------------r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device0.8    3.7   43.5   38.3  0.0  0.0    0.8    0.4   0   0 c0d00.0    0.0    0.0    0.0  0.0  0.0    0.0    0.1   0   0 c0t1d00.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c2t1d0s2Average_time_spent_reading(ms) = number_of_reads_per_second * average_service_time(ms)/(number_of_reads_per_second + number_of_writes_per_second) .Average_time_spent_writing(ms) = number_of_writes_per_second * average_service_time(ms) /(number_of_reads_per_second + number_of_writes_per_second)Thanks in advance.
Getting averageReadTime and averageWriteTime in solaris(disk I/O)
solaris;iostat