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

How to use the iostat command of Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly explains "how to use the iostat command of Linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to use the iostat command of Linux.

Linux common commands iostat commands are used to monitor the use of system input and output devices and CPU. It is characterized by reporting disk activity statistics as well as CPU usage.

Option:-c: show only CPU usage;-d: show only device utilization;-k: display status in kilobytes per second instead of blocks per second;-m: display status in megabytes per second;-p: display only block devices and all other partitions used;-t: show the time when each report was generated;-V: display version number and exit -x: displays the expansion status. Example: iostat-x / dev/sda1 Linux 2.6.18-164.el5xen (localhost.localdomain) March 26, 2010 avg-cpu:% user% nice% system% iowait% steal% idle 0.11 0.02 0.18 0.35 0.03 99.31 Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn sda1 0.02 0.08 2014 4 details: the second line is the system information and monitoring time The third and fourth lines show CPU usage (the details are the same as the mpstat command). The main focus here is on the information output from the following Istroke O, as shown below:

Indicate the number of read requirements per second for the name of the Device monitoring device rrqm/s, the number of writes required per second for wrqm/s, the actual number of read requirements per second, the actual number of write requirements per second, rsec/s, the number of read segments per second, wsec/s, the number of write extents per second, rkB/s, the actual read size per second, in units of KBwkB/s actual writes per second Unit is the average size of the KBavgrq-sz demand, the average queue length of the avgqu-sz demand, the average time await waited for the svctmI/O O average time (milliseconds) the average time that the svctmI/O requirement was completed% util was consumed by the CPU percentage of the Linux O demand so far, I believe you have a deeper understanding of "how to use the iostat command of Linux", you might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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

Development

Wechat

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

12
Report