Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Interpretation of disk io by iostat of Linux

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1 、 iostat

[oracle@orastb log] $iostat

Linux 3.10.0-327.el7.x86_64 (orastb.bonc.com.cn) 09 / 07 / 07 / 2017 _ x86 / 64 _ (32 CPU)

Avg-cpu:% user nice% system% iowait% steal% idle

0.70 0.00 0.19 0.01 0.00 99.09

Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn

Sda 19.01 133.47 381.19 833489930 2380474826

Sdb 0.00 0.00 0.00 6884 0

Sdc 0.00 0.00 0.00 6884 0

Dm-0 5.07 1.15 63.84 7193043 398650022

Dm-1 0.00 0.00 0.00 4040 0

Dm-2 14.22 132.31 317.27 826266347 1981327091

Avg-cpu: overall cpu usage statistics. For multicore cpu, here is the average of all cpu

Device: device name displayed in sdX form

Tps: the number of IO read and write requests issued by the process per second

Blk_read/s: read sectors per second (one sector is 512bytes)

Blk_wrtn/s: number of sectors written per second

Blk_read: total number of read sectors in the sampling interval

Blk_wrtn: total number of write sectors in the sampling interval

2.-x outputs extended information. The-k option specifies that part of the output of iostat is measured in kB, not in the number of sectors.

[oracle@orastb log] $iostat-x-k

Linux 3.10.0-327.el7.x86_64 (orastb.bonc.com.cn) 09 / 07 / 07 / 2017 _ x86 / 64 _ (32 CPU)

Avg-cpu:% user nice% system% iowait% steal% idle

0.70 0.00 0.19 0.01 0.00 99.09

Device: rrqm/s wrqm/s rUnip s wdeband s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm% util

Sda 0.00 0.28 2.40 16.61 133.46 381.18 54.14 0.17 9.20 1.20 10.36 0.13 0.25

Sdb 0.00 0.00 0.00 8.55 0.00 0.54 0.54 0.00 0.54 0.00

Sdc 0.00 0.00 0.00 8.55 0.00 0.52 0.52 0.00 0.52 0.00

Dm-0 0.00 0.00 0.11 4.97 1.15 63.83 25.63 0.01 2.48 2.88 2.47 0.17 0.09

Dm-1 0.00 0.00 0.00 10.90 0.00 12.04 12.04 0.00 12.04 0.00

Dm-2 0.00 0.00 2.29 11.93 132.30 317.26 63.22 0.17 11.54 1.13 13.54 0.16 0.22

Description:

Avg-cpu: overall cpu usage statistics. For multicore cpu, here is the average of all cpu

Device: IO statistics for each disk device

Rrqm/s: the number of read requests to the device per second are merged, and the file system merges requests for reading the same block (block)

Wrqm/s: the number of write requests to the device that were merged per second

Ripple s: the number of reads completed per second

Whand s: the number of writes completed per second

RkB/s: data read per second (in kB)

WkB/s: the amount of data written per second (in kB)

Avgrq-sz: average amount of data per IO operation (number of sectors)

Avgqu-sz: average queue length of IO requests waiting to be processed

Await: the average waiting time for each IO request (including waiting time and processing time, in milliseconds), which can be understood as the response time of IO

Svctm: the average processing time of each IO request (in milliseconds), which can be understood as the service time of the disk

% util: uses the ratio of time spent on IO operations in the cycle, that is, the ratio of time that the IO queue is not empty, which can be understood as disk utilization

3. Specify the sampling interval and number of samples of the iostat command in the form of "--iostat interval [count]"

[oracle@orastb log] $iostat 2 2

Linux 3.10.0-327.el7.x86_64 (orastb.bonc.com.cn) 09 / 07 / 07 / 2017 _ x86 / 64 _ (32 CPU)

Avg-cpu:% user nice% system% iowait% steal% idle

0.70 0.00 0.19 0.01 0.00 99.09

Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn

Sda 19.01 133.42 381.07 833598668 2380963184

Sdb 0.00 0.00 0.00 6884 0

Sdc 0.00 0.00 0.00 6884 0

Dm-0 5.07 1.15 63.81 7194399 398709602

Dm-1 0.00 0.00 0.00 4040 0

Dm-2 14.22 132.26 317.18 826373729 1981755868

Avg-cpu:% user nice% system% iowait% steal% idle

0.25 0.00 0.09 0.00 0.00 99.65

Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn

Sda 8.00 32.00 76.00 64 152

Sdb 0.00 0.00 0.00 00

Sdc 0.00 0.00 0.00 00

Dm-0 0.00 0.00 0.00 00

Dm-1 0.00 0.00 0.00 00

Dm-2 8.00 32.00 76.00 64 152

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report