Displaying Virtual Memory Statistics
You can use the vmstat command to report virtual memory statistics
and information about system events such as CPU load, paging, number of context switches, device
interrupts, and system calls. The vmstat command can also display statistics on
swapping, cache flushing, and interrupts.
Table 3-2 Output From the vmstat Command
|
|
|
procs
|
|
|
|
r
|
The number of kernel threads in the dispatch queue
|
|
b
|
The number of blocked kernel threads that are waiting for resources
|
|
w
|
The number of swapped-out LWPs that are waiting for processing resources to
finish
|
memory
|
|
Reports on usage of real memory and virtual memory
|
|
swap
|
Available swap space
|
|
free
|
Size of the free list
|
page
|
|
Reports on page faults and paging activity, in units per second
|
|
re
|
Pages reclaimed
|
|
mf
|
Minor faults and major faults
|
|
pi
|
Kbytes paged in
|
|
po
|
Kbytes paged out
|
|
fr
|
Kbytes freed
|
|
de
|
Anticipated memory that is needed by recently swapped-in processes
|
|
sr
|
Pages scanned by the page daemon not currently in use. If
sr does not equal zero, the page daemon has been
running.
|
disk
|
|
Reports the number of disk operations per second, showing data on up to four disks
|
faults
|
|
Reports the trap/interrupt rates per second
|
|
in
|
Interrupts per second
|
|
sy
|
System calls per second
|
|
cs
|
CPU context switch rate
|
cpu
|
|
Reports on the use of CPU time
|
|
us
|
User time
|
|
sy
|
System time
|
|
id
|
Idle time
|
|
For a more detailed description of this command, see the
vmstat
(1M)
man page.