05.08.2013 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.3 TOOLS THAT REPORT CURRENT SYSTEM STATUS 65<br />

between samples, and the number of samples you want. An example command line<br />

for sar is shown in Example 4.20.<br />

$ sar -A -o /tmp/sar.dat 5 10<br />

Example 4.20 Example Command Line for sar<br />

This instructs sar to do the following.<br />

1. Record all types of events (-A).<br />

2. Store the events in the file /tmp/sar.dat.<br />

3. Record a sample at 5-second intervals.<br />

4. Record a total of 10 samples.<br />

When sar runs it will output data to the screen as well as to the data file, as<br />

shown in Example 4.21.<br />

$ sar -A -o /tmp/sar.dat 5 10<br />

Example 4.21 Output from sar as It Runs<br />

SunOS machinename 5.9 Generic_112233-01 sun4u 08/26/2003<br />

21:07:39 %usr %sys %wio %idle<br />

device %busy avque r+w/s blks/s avwait avserv<br />

runq-sz %runocc swpq-sz %swpocc<br />

bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s pwrit/s<br />

swpin/s bswin/s swpot/s bswot/s pswch/s<br />

scall/s sread/s swrit/s fork/s exec/s rchar/s wchar/s<br />

iget/s namei/s dirbk/s<br />

rawch/s canch/s outch/s rcvin/s xmtin/s mdmin/s<br />

proc-sz ov inod-sz ov file-sz ov lock-sz<br />

msg/s sema/s<br />

atch/s pgin/s ppgin/s pflt/s vflt/s slock/s<br />

pgout/s ppgout/s pgfree/s pgscan/s %ufs_ipf<br />

freemem freeswap<br />

sml_mem alloc fail lg_mem alloc fail ovsz_alloc fail<br />

21:07:44 50 1 0 50<br />

fd0 0 0.0 0 0 0.0 0.0<br />

ssd0 0 0.0 0 0 0.0 0.0<br />

ssd0,a 0 0.0 0 0 0.0 0.0<br />

ssd0,b 0 0.0 0 0 0.0 0.0<br />

ssd0,c 0 0.0 0 0 0.0 0.0<br />

ssd0,h 0 0.0 0 0 0.0 0.0<br />

ssd1 0 0.0 0 0 0.0 0.0<br />

ssd1,a 0 0.0 0 0 0.0 0.0<br />

continues

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!