📄 vmstat.1
字号:
.TH vmstat 1.de s1.if n .sp.if t .sp .1i...de t1.if n .ta 5n.if t .ta 1i...SH Namevmstat \- report virtual memory statistics.SH Syntax.B vmstat[.I interval[.I count] ] .br.B vmstat \-v[.I interval[.I count] ] .br.B vmstat \-fKSsz.br.B vmstat \-Kks.I namelist[.I corefile].SH Description.NXR "vmstat command".NXA "vmstat command" "netstat command".NXA "vmstat command" "iostat command".NXR "virtual memory" "reporting statistics".NXR "system" "reporting statistics".NXR "memory" "reporting statistics"The.PN vmstatcommand reports statistics on processes, virtual memory, disk, trap, and cpu activity. .PPIf .PN vmstatis specified without arguments, this command summarizes the virtualmemory activity since the system was last booted. If the.I intervalargument is specified, then successive lines are summaries of activityover the last.I intervalseconds.Because many statistics are sampled in the system every five seconds,five is a good specification for .I interval; other statistics vary every second.If the .I countargument is provided, the statistics are repeated .I counttimes. .PPWhen you run.PN vmstatthe format fields are as follows:.NXR "vmstat command" "format fields".PPProcs: information about numbers of processes in various states..NXR "process" "reporting statistics".RS 5.IP \fBr\fR 5in run queue.IP \fBb\fRblocked for resources (i/o, paging, and so on.).IP \fBw\fRrunnable or short sleeper (< 20 seconds) but swapped.RE.PPfaults: trap/interrupt rate averages per second over the last 5 seconds..RS 5.IP in 5(non clock) device interrupts per second.IP sysystem calls per second.IP cscpu context switch rate (switches/second).RE.PPcpu: breakdown of percentage usage of cpu time.RS 5.IP us 5user time for normal and low priority processes.IP sysystem time.IP idcpu idle time.RE.PPMemory: information about the use of virtual and real memory.Virtual pages are considered active if they belong to processes whichare running or have run in the last 20 seconds..RS 5.IP \fBavm\fR 5active virtual pages.IP \fBfre\fRsize of the free list.RE.PPPages are reported in units of 1024 bytes..PPIf the number of pages exceeds 9999, it is shown in a scaledrepresentation. The suffix k indicates multiplicationby 1000 and the suffix m indicates multiplication by1000000. For example, the value 12345 appears as 12k..PPpage: information about page faults and paging activity.These are averaged every five seconds, and given in units per second.The size of a unit is always 1024 bytes and is independent ofthe actual page size on a machine..NXR "page" "reporting statistics".RS 5.IP \fBre\fR 5page reclaims (simulating reference bits).IP \fBat\fRpages attached (found in free list not swapdev or filesystem).IP \fBpi\fRpages paged in.IP \fBpo\fRpages paged out.IP \fBfr\fRpages freed per second.IP \fBde\fR anticipated short term memory shortfall.IP \fBsr\fRpages scanned by clock algorithm, per-second.RE.PPdisk: s0, s1 ...sn: Paging/swapping disk sector transfers per second (this field is system dependent)..NXR "disk" "reporting statisticsTypically paging is split across several of the available drives.This will print for each paging/swapping device configured into the kernel..SH Options.IP \fB\-f\fRProvides reports on the number of.I forksand.I vforkssince system startup and the number of pages of virtual memory involved in eachkind of fork..IP \fB\-K\fRDisplays usage statistics of the kernel memory allocator..IP \fB\-k\fRAllows a dump to be interrogated to print the contents of the sum structure when specified with a .I namelistand.I corefile.This is the default..IP \fB\-S\fRReplaces the page reclaim (re) and pages attached (at) fields withprocesses swapped in (si) and processes swapped out (so)..IP \fB\-s\fRPrints the contents of the.I sumstructure, giving the total number of severalkinds of paging relatedevents that have occurred since boot..IP \-vPrints an expanded form of the virtual memory statistics..IP \fB\-z\fRZeroes out the sum structure if the UID indicates root privilege..NXR "fork" "reporting".NXR "vfork" "reporting".SH Examples.PPThe following command prints what the systemis doing every five seconds:.EXvmstat 5.EETo find the status after a core dump use the following:.EXcd /usr/adm/crashvmstat \-k vmunix.? vmcore.?.EE.SH Files.TP 12.PN /dev/kmemKernel memory.TP.PN /vmunixSystem namelist
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -