SUNWcsu
iostat iteratively reports terminal and disk I/O activity, as well as CPU utilization. The first line of output is for all time since boot; each subsequent line is for the prior interval only.
To compute this information, the kernel maintains a number of counters. For each disk, the kernel counts reads, writes, bytes read, and bytes written. The kernel also takes hi-res time stamps at queue entry and exit points, which allows it to keep track of the residence time and cumulative residence-length product for each queue. Using these values, iostat produces highly accurate measures of throughput, utilization, queue lengths, transaction rates and service time. For terminals collectively, the kernel simply counts the number of input and output characters.
For more general system statistics, use sar(1) , sar(1M) , or vmstat(1M) .
See for device naming conventions for disks.
iostat’s activity class options default to tdc (terminal, disk, and CPU ). If any activity class options are specified, the default is completely overridden. Therefore, if only -d is specified, neither terminal nor CPU statistics will be reported. The last disk option specified (-d, -D, or -x) is the only one that is used.
extended disk statistics | tty | cpu |
l1b n1b n1b n1b n1b n1b n1b n1b n1b n1b n1b n1b n1b n1b n1b n1b. | ||
disk | r/s | w/s |
sd0 | 6.2 | 0.0 |
sd1 | 1.8 | 0.0 |
sd2 | 0.0 | 0.0 |
sd3 | 5.6 | 0.2 |
rb s s s s s s s2 s2 s cb s s s rb s. | ||
extended disk statistics | tty | cpu |
lb nb nb nb nb nb nb nb nb nb nb nb nb nb nb nb. | ||
disk | r/s | w/s |
sd0 | 2.6 | 3.0 |
sd1 | 4.2 | 1.0 |
sd2 | 0.0 | 0.0 |
sd3 | 10.2 | 1.6 |
The fields have the following meanings:
- disk
- name of the disk
- r/s
- reads per second
- w/s
- writes per second
- Kr/s
- kilobytes read per second
- Kw/s
- kilobytes written per second
- wait
- average number of transactions waiting for service (queue length)
- actv
- average number of transactions actively being serviced (removed from the queue but not yet completed)
- svc_t
- average service time, in milliseconds
- %w
- percent of time there are transactions waiting for service (queue non-empty)
- %b
- percent of time the disk is busy (transactions in progress)