Linux server analyzes server disk IO with iotop command

Source: Internet
Author: User
Tags git clone

Most of the IO statistics tools under Linux, such as Iostat, Nmon, and so on, are only counted to the Per Device's read and write situations, and if you want to know how each process uses IO, it's a bit cumbersome.
If you can systemtap, or blktrace these things difficult to everyone, but no special tools are always not very comfortable. Fortunately, the Linux 2.6.20 kernel provides an IO accounting feature based on each process, so there's a handy tool like Iotop. It can be analyzed by Iotop tool to see which process occupies high read and write.

Website address: http://guichaz.free.fr/iotop/

Iotop is a Python program with a top like UI used to show of behalf of which process is the I/O going on.

1 Connection Server Installation Iotop method:

CentOS System executes yum install Iotop

Ubuntu execute sudo apt-get install Iotop

How to install git:

git clone git://repo.or.cz/iotop.git

2 after installation, execute iotop to view the disk IO read and write situation.

3 View finished press the letter Q to exit.

Iotop Instructions for use:

Can be operated with left and right arrows, press R is the opposite direction, press O is dynamic switch

Usage Iotop-parameters

–version Viewing the version information
-h,–help View Help information for
-o,–only only show the program on the drive
-b,–batch Batch processing for logging
-N NUM set loop several times
-D sec,–delay=sec setting display time interval

Linux server analyzes server disk IO with iotop command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.