~ubuntu-branches/ubuntu/quantal/sysstat/quantal

« back to all changes in this revision

Viewing changes to man/iostat.in

  • Committer: Bazaar Package Importer
  • Author(s): Dave Walker (Daviey)
  • Date: 2011-02-09 17:10:56 UTC
  • mfrom: (1.1.19 upstream) (2.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110209171056-ep8aecyxtppsrbnf
Tags: 9.1.7-2ubuntu1
* debian/patches/cflags-ordering.patch: Re-arrange CFLAGS in 
  ./Makefile.in to resolve FTBFS. (LP: #716043)
* debian/control: Updated maintainer, as per policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH IOSTAT 1 "JUNE 2010" Linux "Linux User's Manual" -*- nroff -*-
 
2
.SH NAME
 
3
iostat \- Report Central Processing Unit (CPU) statistics and input/output
 
4
statistics for devices and partitions.
 
5
.SH SYNOPSIS
 
6
.ie 'yes'@WITH_DEBUG@' \{
 
7
.B iostat [ -c ] [ -d ] [ --debuginfo ] [ -N ] [ -k | -m ] [ -t ] [ -V ] [ -x ] [ -z ] [
 
8
.I device
 
9
.B [...] | ALL ] [ -p [
 
10
.I device
 
11
.B [,...] | ALL ] ] [
 
12
.I interval
 
13
.B [
 
14
.I count
 
15
.B ] ]
 
16
.\}
 
17
.el \{
 
18
.B iostat [ -c ] [ -d ] [ -N ] [ -k | -m ] [ -t ] [ -V ] [ -x ] [ -z ] [
 
19
.I device
 
20
.B [...] | ALL ] [ -p [
 
21
.I device
 
22
.B [,...] | ALL ] ] [
 
23
.I interval
 
24
.B [
 
25
.I count
 
26
.B ] ]
 
27
.\}
 
28
.SH DESCRIPTION
 
29
The
 
30
.B iostat
 
31
command is used for monitoring system input/output device
 
32
loading by observing the time the devices are active in relation
 
33
to their average transfer rates. The
 
34
.B iostat
 
35
command generates reports
 
36
that can be used to change system configuration to better balance
 
37
the input/output load between physical disks.
 
38
 
 
39
The first report generated by the
 
40
.B iostat
 
41
command provides statistics
 
42
concerning the time since the system was booted. Each subsequent report
 
43
covers the time since the previous report. All statistics are reported
 
44
each time the iostat command is run. The report consists of a
 
45
CPU header row followed by a row of
 
46
CPU statistics. On
 
47
multiprocessor systems, CPU statistics are calculated system-wide
 
48
as averages among all processors. A device header row is displayed
 
49
followed by a line of statistics for each device that is configured.
 
50
 
 
51
The
 
52
.I interval
 
53
parameter specifies the amount of time in seconds between
 
54
each report. The first report contains statistics for the time since
 
55
system startup (boot). Each subsequent report contains statistics
 
56
collected during the interval since the previous report. The
 
57
.I count
 
58
parameter can be specified in conjunction with the
 
59
.I interval
 
60
parameter. If the
 
61
.I count
 
62
parameter is specified, the value of
 
63
.I count
 
64
determines the number of reports generated at
 
65
.I interval
 
66
seconds apart. If the
 
67
.I interval
 
68
parameter is specified without the
 
69
.I count
 
70
parameter, the
 
71
.B iostat
 
72
command generates reports continuously.
 
73
 
 
74
.SH REPORTS
 
75
The
 
76
.B iostat
 
77
command generates three types of reports, the CPU
 
78
Utilization report, the Device Utilization report and
 
79
the Network Filesystem report.
 
80
.IP "CPU Utilization Report"
 
81
The first report generated by the
 
82
.B iostat
 
83
command is the CPU
 
84
Utilization Report. For multiprocessor systems, the CPU values are
 
85
global averages among all processors.
 
86
The report has the following format:
 
87
 
 
88
.B %user
 
89
.RS
 
90
.RS
 
91
Show the percentage of CPU utilization that occurred while
 
92
executing at the user level (application).
 
93
.RE
 
94
 
 
95
.B %nice
 
96
.RS
 
97
Show the percentage of CPU utilization that occurred while
 
98
executing at the user level with nice priority.
 
99
.RE
 
100
 
 
101
.B %system
 
102
.RS
 
103
Show the percentage of CPU utilization that occurred while
 
104
executing at the system level (kernel).
 
105
.RE
 
106
 
 
107
.B %iowait
 
108
.RS
 
109
Show the percentage of time that the CPU or CPUs were idle during which
 
110
the system had an outstanding disk I/O request.
 
111
.RE
 
112
 
 
113
.B %steal
 
114
.RS
 
115
Show the percentage of time spent in involuntary wait by the virtual CPU
 
116
or CPUs while the hypervisor was servicing another virtual processor.
 
117
.RE
 
118
 
 
119
.B %idle
 
120
.RS
 
121
Show the percentage of time that the CPU or CPUs were idle and the system
 
122
did not have an outstanding disk I/O request.
 
123
.RE
 
124
.RE
 
125
.IP "Device Utilization Report"
 
126
The second report generated by the
 
127
.B iostat
 
128
command is the Device Utilization
 
129
Report. The device report provides statistics on a per physical device
 
130
or partition basis. Block devices and partitions for which statistics are
 
131
to be displayed may be entered on the command line.
 
132
If no device nor partition
 
133
is entered, then statistics are displayed
 
134
for every device used by the system, and
 
135
providing that the kernel maintains statistics for it.
 
136
If the
 
137
.B ALL
 
138
keyword is given on the command line, then statistics are
 
139
displayed for every device defined by the system, including those
 
140
that have never been used.
 
141
Transfer rates are shown in 1K blocks by default, unless the environment
 
142
variable POSIXLY_CORRECT is set, in which case 512-byte blocks are used.
 
143
The report may show the following fields,
 
144
depending on the flags used:
 
145
 
 
146
.B Device:
 
147
.RS
 
148
.RS
 
149
This column gives the device (or partition) name as listed in the /dev
 
150
directory.
 
151
 
 
152
.RE
 
153
.B tps
 
154
.RS
 
155
Indicate the number of transfers per second that were issued
 
156
to the device. A transfer is an I/O request to the
 
157
device. Multiple logical requests can be combined into a single I/O
 
158
request to the device. A transfer is of indeterminate size.
 
159
 
 
160
.RE
 
161
.B Blk_read/s (kB_read/s, MB_read/s)
 
162
.RS
 
163
Indicate the amount of data read from the device expressed in a number of
 
164
blocks (kilobytes, megabytes) per second. Blocks are equivalent to sectors
 
165
and therefore have a size of 512 bytes.
 
166
 
 
167
.RE
 
168
.B Blk_wrtn/s (kB_wrtn/s, MB_wrtn/s)
 
169
.RS
 
170
Indicate the amount of data written to the device expressed in a number of
 
171
blocks (kilobytes, megabytes) per second.
 
172
 
 
173
.RE
 
174
.B Blk_read (kB_read, MB_read)
 
175
.RS
 
176
The total number of blocks (kilobytes, megabytes) read.
 
177
 
 
178
.RE
 
179
.B Blk_wrtn (kB_wrtn, MB_wrtn)
 
180
.RS
 
181
The total number of blocks (kilobytes, megabytes) written.
 
182
 
 
183
.RE
 
184
.B rrqm/s
 
185
.RS
 
186
The number of read requests merged per second that were queued to the device.
 
187
 
 
188
.RE
 
189
.B wrqm/s
 
190
.RS
 
191
The number of write requests merged per second that were queued to the device.
 
192
 
 
193
.RE
 
194
.B r/s
 
195
.RS
 
196
The number (after merges) of read requests completed per second for the device.
 
197
 
 
198
.RE
 
199
.B w/s
 
200
.RS
 
201
The number (after merges) of write requests completed per second for the device.
 
202
 
 
203
.RE
 
204
.B rsec/s (rkB/s, rMB/s)
 
205
.RS
 
206
The number of sectors (kilobytes, megabytes) read from the device per second.
 
207
 
 
208
.RE
 
209
.B wsec/s (wkB/s, wMB/s)
 
210
.RS
 
211
The number of sectors (kilobytes, megabytes) written to the device per second.
 
212
 
 
213
.RE
 
214
.B avgrq-sz
 
215
.RS
 
216
The average size (in sectors) of the requests that were issued to the device.
 
217
 
 
218
.RE
 
219
.B avgqu-sz
 
220
.RS
 
221
The average queue length of the requests that were issued to the device.
 
222
 
 
223
.RE
 
224
.B await
 
225
.RS
 
226
The average time (in milliseconds) for I/O requests issued to the device
 
227
to be served. This includes the time spent by the requests in queue and
 
228
the time spent servicing them.
 
229
 
 
230
.RE
 
231
.B r_await
 
232
.RS
 
233
The average time (in milliseconds) for read requests issued to the device
 
234
to be served. This includes the time spent by the requests in queue and
 
235
the time spent servicing them.
 
236
 
 
237
.RE
 
238
.B w_await
 
239
.RS
 
240
The average time (in milliseconds) for write requests issued to the device
 
241
to be served. This includes the time spent by the requests in queue and
 
242
the time spent servicing them.
 
243
 
 
244
.RE
 
245
.B svctm
 
246
.RS
 
247
The average service time (in milliseconds) for I/O requests that were issued
 
248
to the device. Warning! Do not trust this field any more.
 
249
This field will be removed in a future sysstat version.
 
250
 
 
251
.RE
 
252
.B %util
 
253
.RS
 
254
Percentage of CPU time during which I/O requests were issued to the device
 
255
(bandwidth utilization for the device). Device saturation occurs when this
 
256
value is close to 100%.
 
257
.RE
 
258
.RE
 
259
.SH OPTIONS
 
260
.IP -c
 
261
Display the CPU utilization report.
 
262
.IP -d
 
263
Display the device utilization report.
 
264
.if 'yes'@WITH_DEBUG@' \{
 
265
.IP --debuginfo
 
266
Print debug output to stderr.
 
267
.\}
 
268
.IP -k
 
269
Display statistics in kilobytes per second.
 
270
.IP -m
 
271
Display statistics in megabytes per second.
 
272
.IP -N
 
273
Display the registered device mapper names for any device mapper devices.
 
274
Useful for viewing LVM2 statistics.
 
275
.IP "-p [ { device [,...] | ALL } ]"
 
276
The -p option displays statistics for
 
277
block devices and all their partitions that are used by the system.
 
278
If a device name is entered on the command line, then statistics for it
 
279
and all its partitions are displayed. Last, the
 
280
.B ALL
 
281
keyword indicates that statistics have to be displayed for all the block
 
282
devices and partitions defined by the system, including those that have
 
283
never been used.
 
284
.IP -t
 
285
Print the time for each report displayed. The timestamp format may depend
 
286
on the value of the S_TIME_FORMAT environment variable (see below).
 
287
.IP -V
 
288
Print version number then exit.
 
289
.IP -x
 
290
Display extended statistics.
 
291
.IP -z
 
292
Tell iostat to omit output for any devices for which there was no activity
 
293
during the sample period.
 
294
 
 
295
.SH ENVIRONMENT
 
296
The
 
297
.B iostat
 
298
command takes into account the following environment variables:
 
299
 
 
300
.IP S_TIME_FORMAT
 
301
If this variable exists and its value is
 
302
.BR ISO
 
303
then the current locale will be ignored when printing the date in the report
 
304
header. The
 
305
.B iostat
 
306
command will use the ISO 8601 format (YYYY-MM-DD) instead.
 
307
The timestamp displayed with option -t will also be compliant with ISO 8601
 
308
format.
 
309
 
 
310
.IP POSIXLY_CORRECT
 
311
When this variable is set, transfer rates are shown in 512-byte blocks instead
 
312
of the default 1K blocks.
 
313
 
 
314
.SH EXAMPLES
 
315
.B iostat
 
316
.RS
 
317
Display a single history since boot report for all CPU and Devices.
 
318
 
 
319
.RE
 
320
.B iostat -d 2
 
321
.RS
 
322
Display a continuous device report at two second intervals.
 
323
 
 
324
.RE
 
325
.B iostat -d 2 6
 
326
.RS
 
327
Display six reports at two second intervals for all devices.
 
328
 
 
329
.RE
 
330
.B iostat -x sda sdb 2 6
 
331
.RS
 
332
Display six reports of extended statistics at two second intervals for devices
 
333
sda and sdb.
 
334
 
 
335
.RE
 
336
.B iostat -p sda 2 6
 
337
.RS
 
338
Display six reports at two second intervals for device sda and all its
 
339
partitions (sda1, etc.)
 
340
.SH BUGS
 
341
.I /proc
 
342
filesystem must be mounted for
 
343
.B iostat
 
344
to work.
 
345
 
 
346
Kernels older than 2.6.x are no longer supported.
 
347
 
 
348
The average service time (svctm field) value is meaningless,
 
349
as I/O statistics are calculated at block level, and we don't know
 
350
when the disk driver starts to process a request. For this reason,
 
351
this field will be removed in a future sysstat version. 
 
352
.SH FILES
 
353
.I /proc/stat
 
354
contains system statistics.
 
355
 
 
356
.I /proc/uptime
 
357
contains system uptime.
 
358
 
 
359
.I /proc/diskstats
 
360
contains disks statistics.
 
361
 
 
362
.I /sys
 
363
contains statistics for block devices.
 
364
 
 
365
.I /proc/self/mountstats
 
366
contains statistics for network filesystems.
 
367
.SH AUTHOR
 
368
Sebastien Godard (sysstat <at> orange.fr)
 
369
.SH SEE ALSO
 
370
.BR sar (1),
 
371
.BR pidstat (1),
 
372
.BR mpstat (1),
 
373
.BR vmstat (8),
 
374
.BR nfsiostat (1),
 
375
.BR cifsiostat (1)
 
376
 
 
377
.I http://pagesperso-orange.fr/sebastien.godard/