OSDN Git Service

Fix no pic
[uclinux-h8/uClinux-dist.git] / user / procps / vmstat.8
1 .\"  This page Copyright (C) 1994 Henry Ware <al172@yfn.ysu.edu>
2 .\"  Distributed under the GPL, Copyleft 1994.
3 .TH VMSTAT 8 "27 July 1994 " "Throatwobbler Ginkgo Labs" "Linux Administrator's Manual"
4 .SH NAME
5 vmstat \- Report virtual memory statistics
6 .SH SYNOPSIS
7 .ft B
8 .B vmstat
9 .RB [ "\-a" ]
10 .RB [ "\-n" ]
11 .RI [ delay " [ " count ]]
12 .br
13 .B vmstat
14 .RB [ "\-f" ]
15 .RB [ "\-s" ]
16 .RB [ "\-m" ]
17 .br
18 .B vmstat
19 .RB [ "\-S unit"]
20 .br
21 .B vmstat
22 .RB [ "\-d"]
23 .br
24 .B vmstat
25 .RB [ "\-p disk partition"]
26 .br
27 .B vmstat
28 .RB [ "\-V" ]
29 .SH DESCRIPTION
30 \fBvmstat\fP reports information about processes, memory, paging,
31 block IO, traps, and cpu activity.
32
33 The first report produced gives averages since the last reboot.  Additional
34 reports give information on a sampling period of length \fIdelay\fP.
35 The process and memory reports are instantaneous in either case.
36
37 .SS Options
38 The \fB-a\fP switch displays active/inactive memory, given a 2.5.41 kernel or better.
39 .PP
40 The \fB-f\fP switch displays the number of forks since boot.
41 This includes the fork, vfork, and clone system calls, and is
42 equivalent to the total number of tasks created. Each process
43 is represented by one or more tasks, depending on thread usage.
44 This display does not repeat.
45 .PP
46 The \fB-m\fP displays slabinfo.
47 .PP
48 The \fB-n\fP switch causes the header to be displayed only once rather than periodically.
49 .PP
50 The \fB-s\fP switch displays a table of various event counters
51 and memory statistics. This display does not repeat.
52 .PP
53 .I delay
54 is the delay between updates in seconds.  If no delay is specified,
55 only one report is printed with the average values since boot.
56 .PP
57 .I count
58 is the number of updates.  If no count is specified and delay is
59 defined, \fIcount\fP defaults to infinity.
60 .PP
61 The \fB-d\fP reports disk statistics (2.5.70 or above required) 
62 .PP
63 The \fB-p\fP followed by some partition name for detailed statistics (2.5.70 or above required) 
64 .PP
65 The \fB-S\fP followed by k or K or m or M switches outputs between 1000, 1024, 1000000, or 1048576 bytes 
66 .PP
67 The \fB-V\fP switch results in displaying version information.
68 .PP
69 .SH FIELD DESCRIPTION FOR VM MODE
70 .SS
71 .B "Procs"
72 .nf
73 r: The number of processes waiting for run time.  
74 b: The number of processes in uninterruptible sleep.
75 .fi
76 .PP
77 .SS
78 .B "Memory"
79 .nf
80 swpd: the amount of virtual memory used.
81 free: the amount of idle memory.
82 buff: the amount of memory used as buffers.
83 cache: the amount of memory used as cache.
84 inact: the amount of inactive memory. (-a option)
85 active: the amount of active memory. (-a option)
86 .fi
87 .PP
88 .SS
89 .B "Swap"
90 .nf
91 si: Amount of memory swapped in from disk (/s).
92 so: Amount of memory swapped to disk (/s).
93 .fi
94 .PP
95 .SS
96 .B "IO"
97 .nf
98 bi: Blocks received from a block device (blocks/s).
99 bo: Blocks sent to a block device (blocks/s).
100 .fi
101 .PP
102 .SS
103 .B "System"
104 .nf
105 in: The number of interrupts per second, including the clock.
106 cs: The number of context switches per second.
107 .if
108 .PP
109 .SS
110 .B "CPU "
111 These are percentages of total CPU time.
112 .nf
113 us: Time spent running non-kernel code. (user time, including nice time)
114 sy: Time spent running kernel code. (system time)
115 id: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time.
116 wa: Time spent waiting for IO. Prior to Linux 2.5.41, included in idle.
117 st: Time stolen from a virtual machine. Prior to Linux 2.6.11, unknown.
118
119 .PP
120 .SH FIELD DESCRIPTION FOR DISK MODE 
121 .SS
122 .B "Reads"
123 .nf
124 total: Total reads completed successfully 
125 merged: grouped reads (resulting in one I/O)
126 sectors: Sectors read successfully
127 ms: milliseconds spent reading
128 .fi
129 .PP
130 .SS
131 .B "Writes"
132 .nf
133 total: Total writes completed successfully
134 merged: grouped writes (resulting in one I/O)
135 sectors: Sectors written successfully
136 ms: milliseconds spent writing
137 .fi
138 .PP
139 .SS
140 .B "IO"
141 .nf
142 cur: I/O in progress
143 s: seconds spent for I/O
144 .fi
145
146 .PP
147 .SH FIELD DESCRIPTION FOR DISK PARTITION MODE
148 .nf
149 reads: Total number of reads issued to this partition
150 read sectors: Total read sectors for partition
151 writes : Total number of writes issued to this partition
152 requested writes: Total number of write requests made for partition
153
154 .fi
155
156 .PP
157 .SH FIELD DESCRIPTION FOR SLAB MODE 
158 .nf
159 cache: Cache name
160 num: Number of currently active objects
161 total: Total number of available objects
162 size: Size of each object
163 pages: Number of pages with at least one active object
164 totpages: Total number of allocated pages
165 pslab: Number of pages per slab
166 .fi
167
168 .SH NOTES
169 .B "vmstat "
170 does not require special permissions.
171 .PP
172 These reports are intended to help identify system bottlenecks.  Linux
173 .B "vmstat "
174 does not count itself as a running process.
175 .PP
176 All linux blocks are currently 1024 bytes. Old kernels may report
177 blocks as 512 bytes, 2048 bytes, or 4096 bytes.
178 .PP
179 Since procps 3.1.9, vmstat lets you choose units (k, K, m, M) default is K (1024 bytes) in the default mode
180 .PP
181 vmstat uses slabinfo 1.1    FIXME
182 .SH FILES
183 .ta
184 .nf
185 /proc/meminfo
186 /proc/stat
187 /proc/*/stat
188 .fi
189
190 .SH "SEE ALSO"
191 iostat(1), sar(1), mpstat(1), ps(1), top(1), free(1)
192 .PP
193 .SH BUGS
194 Does not tabulate the block io per device or count the number of system calls.
195 .SH AUTHORS
196 .nf
197 Written by Henry Ware <al172@yfn.ysu.edu>. 
198 Fabian Fr\('ed\('erick <ffrederick@users.sourceforge.net> (diskstat, slab, partitions...)