version 1.14, 1999/07/03 02:11:09 |
version 1.15, 2000/03/14 14:58:25 |
|
|
.Op Fl w Ar wait |
.Op Fl w Ar wait |
.Op disks |
.Op disks |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm vmstat |
.Nm |
reports certain kernel statistics kept about process, virtual memory, |
reports certain kernel statistics kept about process, virtual memory, |
disk, trap and cpu activity. |
disk, trap and CPU activity. |
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width "blah" |
.Bl -tag -width "blah" |
|
|
.El |
.El |
.Pp |
.Pp |
By default, |
By default, |
.Nm vmstat |
.Nm |
displays the following information just once: |
displays the following information just once: |
.Bl -tag -width "whatever" |
.Bl -tag -width "whatever" |
.It procs |
.It procs |
|
|
.El |
.El |
.Pp |
.Pp |
.It Ar memory |
.It Ar memory |
Information about the usage of virtual and real memory. Virtual pages |
Information about the usage of virtual and real memory. |
|
Virtual pages |
(reported in units of 1024 bytes) are considered active if they belong |
(reported in units of 1024 bytes) are considered active if they belong |
to processes which are running or have run in the last 20 seconds. |
to processes which are running or have run in the last 20 seconds. |
.Pp |
.Pp |
|
|
The header of the field is the first character of the disk name and |
The header of the field is the first character of the disk name and |
the unit number. |
the unit number. |
If more than four disk drives are configured in the system, |
If more than four disk drives are configured in the system, |
.Nm vmstat |
.Nm |
displays only the first four drives. |
displays only the first four drives. |
To force |
To force |
.Nm vmstat |
.Nm |
to display specific drives, their names may be supplied on the command line. |
to display specific drives, their names may be supplied on the command line. |
.Pp |
.Pp |
.It Ar faults |
.It Ar faults |
|
|
.It Ar sy |
.It Ar sy |
system calls per interval |
system calls per interval |
.It Ar cs |
.It Ar cs |
cpu context switch rate (switches/interval) |
CPU context switch rate (switches/interval) |
.El |
.El |
.Pp |
.Pp |
.It Ar cpu |
.It Ar cpu |
|
|
.It Ar sy |
.It Ar sy |
system time |
system time |
.It Ar id |
.It Ar id |
cpu idle |
CPU idle |
.El |
.El |
.El |
.El |
.Sh EXAMPLES |
.Sh EXAMPLES |
The command ``vmstat -w 5'' will print what the system is doing every five |
The command |
|
.Ic vmstat -w 5 |
|
will print what the system is doing every five |
seconds; this is a good choice of printing interval since this is how often |
seconds; this is a good choice of printing interval since this is how often |
some of the statistics are sampled in the system. |
some of the statistics are sampled in the system. |
Others vary every second and running the output for a while will make it |
Others vary every second and running the output for a while will make it |
|
|
.Xr iostat 8 , |
.Xr iostat 8 , |
.Xr pstat 8 |
.Xr pstat 8 |
.Pp |
.Pp |
The sections starting with ``Interpreting system activity'' in |
The sections starting with |
|
.Dq Interpreting system activity |
|
in |
.%T "Installing and Operating 4.3BSD" . |
.%T "Installing and Operating 4.3BSD" . |
.Sh BUGS |
.Sh BUGS |
The |
The |