Vmstat (Unix)
   HOME

TheInfoList



OR:

vmstat (''virtual memory statistics'') is a computer
system monitor A system monitor is a hardware or software component used to monitor system resources and performance in a computer system. Among the management issues regarding use of system monitoring tools are resource usage and privacy. Monitoring can tra ...
ing tool that collects and displays summary information about
operating system An operating system (OS) is system software that manages computer hardware and software resources, and provides common daemon (computing), services for computer programs. Time-sharing operating systems scheduler (computing), schedule tasks for ...
memory, processes, interrupts, paging and block I/O. Users of vmstat can specify a sampling interval which permits observing system activity in near-real time. The vmstat tool is available on most
Unix Unix (, ; trademarked as UNIX) is a family of multitasking, multi-user computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
and
Unix-like A Unix-like (sometimes referred to as UN*X, *nix or *NIX) operating system is one that behaves in a manner similar to a Unix system, although not necessarily conforming to or being certified to any version of the Single UNIX Specification. A Uni ...
operating systems, such as
FreeBSD FreeBSD is a free-software Unix-like operating system descended from the Berkeley Software Distribution (BSD). The first version was released in 1993 developed from 386BSD, one of the first fully functional and free Unix clones on affordable ...
,
Linux Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
or
Solaris Solaris is the Latin word for sun. It may refer to: Arts and entertainment Literature, television and film * ''Solaris'' (novel), a 1961 science fiction novel by Stanisław Lem ** ''Solaris'' (1968 film), directed by Boris Nirenburg ** ''Sol ...
.


Syntax

The syntax and output of vmstat often differs slightly between different operating systems. # vmstat 2 6 procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 2536 21496 185684 1353000 0 0 0 14 1 2 0 0 100 0 0 0 2536 21496 185684 1353000 0 0 0 28 1030 145 0 0 100 0 0 0 2536 21496 185684 1353000 0 0 0 0 1026 132 0 0 100 0 0 0 2536 21520 185684 1353000 0 0 0 0 1033 186 1 0 99 0 0 0 2536 21520 185684 1353000 0 0 0 0 1024 141 0 0 100 0 0 0 2536 21584 185684 1353000 0 0 0 0 1025 131 0 0 100 0 In the above example the tool reports every two seconds for six iterations. We can get the customized or required outputs by using various options with the vmstat command. ;# vmstat –s: This option is used to get ''memory statistics''. ;# vmstat –d: This option is used to get ''disk statistics''.


See also

*
nmon nmon (''Nigel's Monitor'') is a computer performance system monitor tool for the AIX and Linux operating systems. The nmon tool has two modes a) displays the performance stats on-screen in a condensed format or b) the same stats are saved to a co ...
— a system monitor tool for the AIX and Linux operating systems. *
iostat iostat (''input/output statistics'') is a computer system monitor tool used to collect and show operating system computer data storage, storage input and output statistics. It is often used to identify performance issues with storage devices, incl ...
*
top Top most commonly refers to: * Top, a basic term of orientation, distinguished from bottom, front, back, and sides * Spinning top, a ubiquitous traditional toy * Top (clothing), clothing designed to be worn over the torso * Mountain top, a moun ...
* sar


References


External links

* * *
Softpanorama vmstat page
Unix software System monitors {{Software-stub