CONTENT
  • CHANGES
Szukaj
counter

#top iostat


iostat - Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions

Powiązane:
iostat, mpstat, vmstat, vnstat

SYNOPSIS
iostat [ -c | -d ] [ -k | -m ] [ -t ] [ -V ] [ -x ] [ -n ] [ -h ] [ device [ ... ] | ALL ] [ -p [ device | ALL ] ] [ interval [ count ] ]


DESCRIPTION



OPTIONS
-c
The -c option is exclusive of the -d option and displays only the CPU usage report.

-d
The -d option is exclusive of the -c option and displays only the device utilization report.

-k
Display statistics in kilobytes per second instead of blocks per second. Data displayed are valid only with kernels 2.4 and newer.

-m
Display statistics in megabytes per second instead of blocks or kilobytes per second. Data displayed are valid only with kernels 2.4 and newer.

-n
Displays the NFS-directory statistic. Data displayed are valid only with kernels 2.6.17 and newer. This option is exclusive ot the -x option.

-h
Display the NFS report more human readable.

-p [ { device | ALL } ]
The -p option is exclusive of the -x option and displays statistics for block devices and all their partitions that are used by the system. If a device name is entered on the command line, then statistics for it and all its partitions are displayed. Last, the ALL keyword indicates that statistics have to be displayed for all the block devices and partitions defined by the system, including those that have never been used. Note that this option works only with post 2.5 kernels.

-t
Print the time for each report displayed.

-V
Print version number then exit.

-x
Display extended statistics. This option is exclusive of the -p and -n, and works with post 2.5 kernels since it needs /proc/diskstats file or a mounted sysfs to get the statistics. This option may also work with older kernels (e.g. 2.4) only if extended statistics are available in /proc/partitions (the kernel needs to be patched for that).



EXAMPLES
iostat 1
Aby przerwać należy nacisnąc CTRL+C
Linux 2.6.32-71.el6.x86_64 (wbcd.pl)    11/17/2015      _x86_64_        (4 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           4.69    4.47    2.88   25.07    0.00   62.89

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sda             120.81       351.79      2161.11  194018631 1191906640
sdd               0.00         0.01         0.00       5534         16
sdc               0.00         0.01         0.00       5530         16
sde             111.39       313.50      1089.32  172903746  600786904
sdf               0.05         0.01        20.33       6240   11212800
sdb              12.26       194.49        69.64  107266774   38405544

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           2.01    0.00    1.25    5.01    0.00   91.73

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sda               3.00         8.00        16.00          8         16
sdd               0.00         0.00         0.00          0          0
sdc               0.00         0.00         0.00          0          0
sde              26.00        32.00       608.00         32        608
sdf               0.00         0.00         0.00          0          0
sdb               0.00         0.00         0.00          0          0

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           2.24    1.25    2.49    4.74    0.00   89.28

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sda               3.00        24.00         0.00         24          0
sdd               0.00         0.00         0.00          0          0
sdc               0.00         0.00         0.00          0          0
sde             175.00        80.00       784.00         80        784
sdf               0.00         0.00         0.00          0          0
sdb               2.00        72.00         0.00         72          0

iostat sda 1 3
Powyższe polecenie wykona trzy iteracje co sekunda wyświetlając informacje dla dysku /dev/sda
Linux 2.6.32-71.el6.x86_64 (wbcd.pl)    11/17/2015      _x86_64_        (4 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           4.69    4.47    2.87   25.07    0.00   62.89

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sda             120.82       351.74      2161.18  194025855 1192155648

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           2.75    2.00    2.00    9.75    0.00   83.50

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sda             180.00       344.00      1504.00        344       1504

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           2.24    0.25    1.99    7.96    0.00   87.56

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sda             145.00       256.00      1088.00        256       1088




Zmodyfikowany ostatnio: 2015/11/18 00:01:48 (9 lat temu), textsize: 5,82 kB, htmlsize: 6,46 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników