Solaris Application Programming, 1/e - Chapter 4 - Parent Directory
Solaris Application Programming, 1/e - Chapter 4 - Parent Directory
Solaris Application Programming, 1/e - Chapter 4 - Parent Directory
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
66 <strong>Chapter</strong> 4 Informational Tools<br />
Example 4.21 Output from sar as It Runs (continued )<br />
ssd1,b 0 0.0 0 0 0.0 0.0<br />
ssd1,c 0 0.0 0 0 0.0 0.0<br />
ssd1,h 0 0.0 0 0 0.0 0.0<br />
0.0 0 0.0 0<br />
0 0 100 0 0 100 0 0<br />
0.00 0.0 0.00 0.0 99<br />
76 6 14 0.00 0.00 1550 2850<br />
0 0 0<br />
0 0 161 0 0 0<br />
65/30000 0 157574/157574 0 0/0 0 0/0<br />
0.00 0.00<br />
0.00 0.00 0.00 0.60 2.20 0.00<br />
0.00 0.00 0.00 0.00 0.00<br />
247682 17041644<br />
0 0 0 0 0 0 17858560 0<br />
Example 4.21 presents a lot of information. The text at the beginning supplies a<br />
template that indicates what the counters represent. The information is as follows.<br />
First it reports the time the system spent in user (%usr), system (%sys), waiting<br />
for block I/O (%wio), and idle (%idle).<br />
Next is a section for each device that reports the device name, percentage of<br />
time busy (%busy), average queue length while the device was busy (avque),<br />
number of reads and writes per second (r+w/s), number of 512-byte blocks<br />
transferred per second (blk/s), average wait time in ms (avwait), and average<br />
service time in ms (avserv).<br />
The length of the queue of runnable processes (runq_sz) and the percentage<br />
of time occupied (%runocc) are listed next. The fields swpq-sz and %swpocc<br />
no longer have values reported for them.<br />
Next is the number of transfers per second of buffers to disk or other block<br />
devices. Read transfers per second (bread/s), reads of system buffers<br />
(lread/s), cache hit rate for reads (%rcache), write transfers per second<br />
(bwrit/s), writes of system buffers (lwrit/s), cache hit rate for writes<br />
(%wcache), raw physical device reads (pread/s), and raw physical device<br />
writes (pwrit/s) are included.<br />
Swapping activity is recorded as the number of swap-ins per second (swpin/<br />
s), number of blocks of 512 bytes swapped in (bswin/s), number of swap-outs<br />
per second (swpot/s), number of 512-byte blocks swapped out (bswot/s),<br />
and number of process switches per second (pswch/s). The number of 512byte<br />
blocks transfered includes the loading of programs.<br />
System calls are reported as the total number of system calls per second<br />
(scall/s), number of read calls per second (sread/s), number of write calls