In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about the use of the iotop 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.
The Linux common command the iotop command is a top-like tool used to monitor disk Imax O usage.
The tool used by iotop to monitor the usage of disk Ibank O
It is added that iotop has a UI similar to top, including PID, user, Imax O, process and other related information. Most of the IO statistical tools under Linux, such as iostat,nmon, can only count the reading and writing of per devices. If you want to know how each process uses IO, it is troublesome to use the iotop command to view it.
Iotop is written in Python and requires Python2.5 (and above) and Linux kernel2.6.20 (and above). Iotop provides source code and rpm packages, which can be downloaded from its official home page.
Install Ubuntu
Apt-get install iotopCentOS
Yum install iotop compilation and installation
Wget http://guichaz.free.fr/iotop/files/iotop-0.4.4.tar.gz tar zxf iotop-0.4.4.tar.gz python setup.py build python setup.py install syntax iotop (option) option-o: only processes with io operations are displayed-b: batch display, no interaction, mainly used to record to files. -n NUM: displays NUM times, mainly for non-interactive mode. -d SEC: displays every SEC second. -p PID: pid of the monitored process. -u USER: the process user being monitored. Common shortcut keys for iotop:
Left and right arrow: change the sorting mode, the default is to sort by IO.
R: change the sort order.
O: only processes with IO output are displayed.
P: switch the way the process / thread is displayed.
A: displays the cumulative usage.
Q: quit.
You can see the effect by directly executing iotop for the instance:
Total DISK read: 0.00B s | Total DISK write: 0.00B s TID PRIO USER DISK READ DISK WRITE SWAPIN IO > command 1 be/4 root 0.00B s 0.00% 0.00% init [3] 2 be/4 root 0.00BUnix s 0.00% [kthreadd] 3 rt/ 4 root 0.00 BUnix 0.00 BUnix 0.00% 0.00% [migration/0] 4 be/4 root 0.00 BUnix 0.00 BUnip 0.00% [ksoftirqd/0] 5 rt/4 root 0.00 BUnix 0.00 BUnip 0.00% [watchdog/0] 6 rt/4 root 0 .00 rt/4 root s 0.00 Bhand s 0.00% 0.00% [migration/1] 7 be/4 root 0.00 Bhand s 0.00% 0.00% [ksoftirqd/1] 8 rt/4 root 0.00 Bhand s 0.00% [watchdog/1] 9 be/4 root 0.00 Bhand s 0.00% 0.00 BAccord 0.00% 0.00% [events/0] 10 be/4 root 0.00 BAccord 0.00% 0.00% [events/1] 11 be/4 root 0.00 BUnix 0.00% 0.00% [khelper] 2572 be/4 root 0.00 BUnix 0.00% 0.00% [bluetooth] Thank you for your reading! This is the end of this article on "what is the use of iotop 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.