Difference between revisions of "Vmstat"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<code>[[wikipedia:vmstat|vmstat]]</code><ref>http://man7.org/linux/man-pages/man8/vmstat.8.html</ref> ([[virtual memory]] statistics) is a [[command]] that displays information about [[operating system]] [[memory]], [[processes]], [[interrupts]], [[paging]] and [[I/O]] block. <code>vmstat</code> command is available at least in [[FreeBSD]], [[Linux]] or [[Solaris]].
+
<code>[[wikipedia:vmstat|vmstat]]</code><ref>http://man7.org/linux/man-pages/man8/vmstat.8.html</ref> ([[virtual memory]] statistics) is a [[command]] that displays information about [[operating system]] [[memory]], [[processes]], [[interrupts]], [[paging]] and [[I/O]] block. <code>vmstat</code> command is available at least in [[FreeBSD]], [[Linux]] or [[Solaris]] and it is included in <code>[[procps]]</code> package in Debian and Ubuntu.
  
  
Line 11: Line 11:
 
  0  0      0 127220  94904 530056    0    0    0  100  43  109  2  0 98  0  0
 
  0  0      0 127220  94904 530056    0    0    0  100  43  109  2  0 98  0  0
 
  0  0      0 127220  94904 530056    0    0    0    0  39  60  0  1 99  0  0
 
  0  0      0 127220  94904 530056    0    0    0    0  39  60  0  1 99  0  0
 +
</pre>
 +
 +
<pre>
 +
vmstat --help
 +
 +
Usage:
 +
vmstat [options] [delay [count]]
 +
 +
Options:
 +
-a, --active          active/inactive memory
 +
-f, --forks            number of forks since boot
 +
-m, --slabs            slabinfo
 +
-n, --one-header      do not redisplay header
 +
-s, --stats            event counter statistics
 +
-d, --disk            disk statistics
 +
-D, --disk-sum        summarize disk statistics
 +
-p, --partition <dev>  partition specific statistics
 +
-S, --unit <char>      define display unit
 +
-w, --wide            wide output
 +
-t, --timestamp        show timestamp
 +
 +
-h, --help    display this help and exit
 +
-V, --version  output version information and exit
 +
 
</pre>
 
</pre>
  

Latest revision as of 16:42, 23 March 2023

vmstat[1] (virtual memory statistics) is a command that displays information about operating system memory, processes, interrupts, paging and I/O block. vmstat command is available at least in FreeBSD, Linux or Solaris and it is included in procps package in Debian and Ubuntu.


vmstat 1
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      0 127568  94904 530064    0    0     6    56   23   79  0  0 99  1  0
 0  0      0 127592  94904 530056    0    0     0     0   26   62  0  0 100  0  0
 0  0      0 127592  94904 530056    0    0     0     0   26   61  0  0 100  0  0
 0  0      0 127220  94904 530056    0    0     0   100   43  109  2  0 98  0  0
 0  0      0 127220  94904 530056    0    0     0     0   39   60  0  1 99  0  0
vmstat --help

Usage:
 vmstat [options] [delay [count]]

Options:
 -a, --active           active/inactive memory
 -f, --forks            number of forks since boot
 -m, --slabs            slabinfo
 -n, --one-header       do not redisplay header
 -s, --stats            event counter statistics
 -d, --disk             disk statistics
 -D, --disk-sum         summarize disk statistics
 -p, --partition <dev>  partition specific statistics
 -S, --unit <char>      define display unit
 -w, --wide             wide output
 -t, --timestamp        show timestamp

 -h, --help     display this help and exit
 -V, --version  output version information and exit

Memory information:

Disk information:

See also[edit]

  • http://man7.org/linux/man-pages/man8/vmstat.8.html
  • Advertising: