HOME

TheInfoList



OR:

vmstat (''virtual memory statistics'') is a computer
system monitor A system monitor is a Computer hardware, 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. ...
ing tool that collects and displays summary information about
operating system An operating system (OS) is system software that manages computer hardware, software resources, and provides common services for computer programs. Time-sharing operating systems schedule tasks for efficient use of the system and may also in ...
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, multiuser 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, and ot ...
and
Unix-like A Unix-like (sometimes referred to as UN*X 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 Unix-li ...
operating systems, such as
FreeBSD FreeBSD is a free and open-source Unix-like operating system descended from the Berkeley Software Distribution (BSD), which was based on Research Unix. The first version of FreeBSD was released in 1993. In 2005, FreeBSD was the most popular ...
,
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, which ...
or
Solaris Solaris 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 ** ''Solaris'' (1972 film), directed by ...
.


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 storage input and output statistics. It is often used to identify performance issues with storage devices, including local disks, or ...
*
top A spinning top, or simply a top, is a toy with a squat body and a sharp point at the bottom, designed to be spun on its vertical axis, balancing on the tip due to the gyroscopic effect. Once set in motion, a top will usually wobble for a few ...
*
sar SAR or Sar may refer to: Places * Sar (river), Galicia, Spain * Sar, Bahrain, a residential district * Sar, Iran (disambiguation), several places in Iran * Sar, Tibet, Tibet Autonomous Region of China * Šar Mountains, in southeastern Europe ...


External links

* * * {{man, 8, vmstat, die.net, Report virtual memory statistics
Softpanorama vmstat page
Unix software System monitors