Difference between revisions of "Vmstat"
Jump to navigation
Jump to search
↑ http://man7.org/linux/man-pages/man8/vmstat.8.html
(13 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | [[wikipedia:vmstat|vmstat]] (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 12: | Line 12: | ||
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> | ||
+ | |||
+ | <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> | ||
+ | |||
+ | * <code>[[vmstat -a]]</code> | ||
+ | * <code>[[vmstat -m]]</code> | ||
[[Memory]] information: | [[Memory]] information: | ||
Line 18: | Line 45: | ||
[[Disk]] information: | [[Disk]] information: | ||
* <code>[[vmstat -d]]</code> | * <code>[[vmstat -d]]</code> | ||
+ | * <code>[[vmstat -D]]</code> | ||
+ | |||
+ | == See also == | ||
+ | * [[proc]] | ||
+ | * {{io performance commands}} | ||
+ | * {{swap}} | ||
+ | * {{OOM}} | ||
+ | * [[performance]] | ||
+ | * [[uptime]] [[tload]] | ||
[[Category:Linux commands]] | [[Category:Linux commands]] | ||
[[Category:Monitoring]] | [[Category:Monitoring]] |
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]
- proc
- IO performance:
iotop, iostat, sar -d, fio, nmon, vmstat -d
,dd
,nmon
,stress
- Swap,
swapon
,swapoff
,mkswap
,swaplabel
,free
,sar -r
,sar -S
,sar -W
,vmstat
,vm.swappiness
,/proc/swaps
,/etc/fstab
, Add a swap disk,systemd.swap
- OOM, EarlyOOM, OOM Killer, MemoryPressure (K8s),
systemd-oomd, OOMKilled, oom-killer, memcpy
,sar -r
,Exit code: 137
- performance
- uptime tload
Advertising: