In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about the usefulness of the iostat command in Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Linux common commands iostat commands are used to monitor the use of system input and output devices and CPU.
Iostat monitors the use of input and output devices and CPU in the system
Add that it is characterized by reporting disk activity statistics as well as CPU usage. Like vmstat, iostat has a weakness that it cannot analyze a process in depth, only the overall situation of the system.
Syntax iostat (options) (parameters) 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: show only the status of block devices and all other partitions used;-t: show the time when each report was generated -V: displays the version number and exits;-x: displays the expansion status. Parameter interval: interval for each report (seconds)
Times: the number of times the report is displayed.
The example uses iostat-x / dev/sda1 to view the details of disk iMaguo:
Iostat-x / dev/sda1 Linux 2.6.18-164.el5xen (localhost.localdomain) 26 March 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 reads required per second by the name of the Device monitoring device rrqm/s, the number of writes required by wrqm/s per second, the number of actual read requirements per second, the actual number of write requirements per second, the number of read segments per second, the number of read segments per second, wsec/s, the actual read size per second, in units of the actual size of writes per second by KBwkB/s Average queue length of KBavgrq-sz demand in average size segment of avgqu-sz demand await average time waiting for svctmI/O O (milliseconds) average time of completion of svctmI/O demand% util percentage of CPU consumed by Imax O demand Thank you for your reading! This is the end of this article on "what is the use of iostat commands in Linux?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.