The following is a demonstration of the xvmstat program.
Here we run it with no arguments. It will default to 1 second samples, and
will run forever,
# xvmstat
w swap free re maj mf cow pro sr epi epo epf api apo apf fpi fpo fpf
0 1025 73 2 0 21 0 0 0 0 0 0 0 0 0 0 0 0
0 1025 73 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
0 1025 73 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1025 73 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1025 73 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1025 73 199 42 166 21 41 0 0 0 0 0 0 0 42 0 0
0 1025 73 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0
0 1025 73 4404 47 175 26 30 0 0 0 0 0 0 0 48 0 0
0 1025 73 433 0 0 0 14 0 0 0 0 0 0 0 0 0 0
0 1025 73 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1025 73 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1025 73 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
^C
Both "swap" and "free" are in units of megabytes, the rest are in units of
pages. "maj" is major faults - a useful addition to the output.
There is no summary since boot line, as this program in not using the
Kstat data.
The following runs xvmstat with a 5 second interval,
# xvmstat 5
w swap free re maj mf cow pro sr epi epo epf api apo apf fpi fpo fpf
0 1025 72 1531 2 40 5 9 0 0 0 0 0 0 0 2 0 0
0 1025 72 1534 0 36 5 9 0 0 0 0 0 0 0 0 0 0
0 1025 72 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1025 72 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1025 72 5 1 82 16 25 0 0 0 0 0 0 0 1 0 0
0 1025 72 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
^C
The values from "re" to "fpf" are per second values.