System Administration Guide: Advanced Administration

ProcedureHow to Display Swapping Statistics (vmstat -S)

  1. Run vmstat -S to show swapping statistics.


    $ vmstat -S
    kthr      memory            page            disk          faults      cpu
     r b w   swap  free  si  so pi po fr de sr dd f0 s1 --   in   sy   cs us sy id
     0 0 0 862608 364792  0   0  1  0  0  0  0  0  0  0  0  406  394  213  1  0 99

    The swapping statistics fields are described in the following list. For a description of the other fields, see Table 13–1.

    si

    Average number of LWPs that are swapped in per second

    so

    Number of whole processes that are swapped out


    Note –

    The vmstat command truncates the output of si and so fields. Use the sar command to display a more accurate accounting of swap statistics.