VMSTAT(8) | Maintenance Commands and Procedures | VMSTAT(8) |
vmstat - report virtual memory statistics
vmstat [-ipqsS] [-T u | d] [disks] [interval [count]]
vmstat reports virtual memory statistics regarding kernel thread, virtual memory, disk, trap, and CPU activity.
On MP (multi-processor) systems, vmstat averages the number of CPUs into the output. For per-processor statistics, see mpstat(8).
vmstat only supports statistics for certain devices. For more general system statistics, use sar(1), iostat(8), or sar(8).
Without options, vmstat displays a one-line summary of the virtual memory activity since the system was booted.
During execution of the kernel status command, the state of the system can change. If relevant, a state change message is included in the vmstat output, in one of the following forms:
<<device added: sd0>> <<device removed: sd0>> <<processors added: 1, 3>> <<processors removed: 1, 3>>
See disks(8) for device naming conventions for disks.
The following options are supported:
-i
-p
epi
epo
epf
api
apo
apf
fpi
fpo
fpf
When executed in a zone and if the pools facility is active, all of the above only report activity on the processors in the processor set of the zone's pool.
-q
-s
-S
-T u | d
The following operands are supported:
count
disks
interval
Example 1 Using vmstat
The following command displays a summary of what the system is doing every five seconds.
example% vmstat 5 kthr memory page disk faults cpu r b w swap free re mf pi p fr de sr s0 s1 s2 s3 in sy cs us sy id 0 0 0 11456 4120 1 41 19 1 3 0 2 0 4 0 0 48 112 130 4 14 82 0 0 1 10132 4280 0 4 44 0 0 0 0 0 23 0 0 211 230 144 3 35 62 0 0 1 10132 4616 0 0 20 0 0 0 0 0 19 0 0 150 172 146 3 33 64 0 0 1 10132 5292 0 0 9 0 0 0 0 0 21 0 0 165 105 130 1 21 78 1 1 1 10132 5496 0 0 5 0 0 0 0 0 23 0 0 183 92 134 1 20 79 1 0 1 10132 5564 0 0 25 0 0 0 0 0 18 0 0 131 231 116 4 34 62 1 0 1 10124 5412 0 0 37 0 0 0 0 0 22 0 0 166 179 118 1 33 67 1 0 1 10124 5236 0 0 24 0 0 0 0 0 14 0 0 109 243 113 4 56 39 ^C example%
The fields of vmstat's display are
kthr
r
b
w
memory
swap
free
page
re
mf
pi
po
fr
de
sr
When executed in a zone and if the pools facility is active, all of the above (except for "de") only report activity on the processors in the processor set of the zone's pool.
disk
faults
in
sy
cs
When executed in a zone and if the pools facility is active, all of the above only report activity on the processors in the processor set of the zone's pool.
cpu
us
sy
id
When executed in a zone and if the pools facility is active, all of the above only report activity on the processors in the processor set of the zone's pool.
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | See below. |
Invocation is evolving. Human readable output is unstable.
date(1), sar(1), time(2), attributes(7), disks(8), iostat(8), mpstat(8), sar(8)
The sum of CPU utilization might vary slightly from 100 because of rounding errors in the production of a percentage figure.
May 6, 2020 | OmniOS |