System Administration Guide

How to Check Swap Activity (sar)

Use the sar -w command to report swapping and switching activity.


$ sar -w
SunOS venus 5.6 Generic sun4m    08/20/96
00:00:03  swpin/s  bswin/s  swpot/s  bswot/s  pswch/s
01:00:02     0.00      0.0     0.00      0.0       12

Target values and observations are described in Table 64-19.

Table 64-19 Output From the sar -w Command

Field Name 

Description 

swpin/s

The number of LWP transfers into memory per second. 

bswin/s

The average number of processes swapped out of memory per second. If the number is greater than 1, you may need to increase memory. 

swpot/s

The average number of processes swapped out of memory per second. If the number is greater than 1, you may need to increase memory. 

bswot/s

The number of blocks transferred for swap-outs per second. 

pswch/s

The number of kernel thread switches per second. 


Note -

All process swap-ins include process initialization.


Example--Checking Swap Activity

The following example shows output from the sar -w command.


$ sar -w
SunOS venus 5.6 Generic sun4m    08/20/96
14:28:12 swpin/s pswin/s swpot/s pswot/s pswch/s
14:29:12    0.00     0.0    0.00     0.0      22
14:30:12    0.00     0.0    0.00     0.0      12
14:31:12    0.00     0.0    0.00     0.0      18
 
Average     0.00     0.0    0.00     0.0      18