The disk I/O is not high enough, what can I do to see the processes that Occupy I/O?

Source: Internet
Author: User

The Iotop command is a top class tool used to monitor disk I/O usage. Iotop has a UI similar to top, which includes information about PID, user, I/O, process, and so on. Most of the IO statistics tools under Linux, such as Iostat,nmon, can only be counted to the read and write of Per device, and if you want to know how each process is using IO, it is more troublesome to use the Iotop command to easily view it. Iotop is written in the Python language and requires Python2.5 (and above) and Linux kernel2.6.20 (and above versions). Iotop provides active code and RPM packages

Yum Install iotop-y can be installed


Command options

-O: Show only processes with IO operations

-B: Batch display, no interaction, mainly used for recording to file.

-N num: Displays NUM times, primarily for non-interactive mode.

-D Sec: Interval sec seconds display once.

-P PID: Monitor the process PID.

-u user: monitored process user.


Example

# iotop -ototal disk read: 0.00 b/s | total disk write:  195.81 M/s  TID  PRIO  USER     DISK  read  disk write  swapin     io>     command                                                                   64250 be/4 root         0.00 B/s    8.97 M/s  0.00 %  99.99 % [flush-8:0]64267 be/4 root        0.00  b/s  197.79&nBsp M/s  0.00 % 87.11 % dd if=/dev/zero of=/tmp/1g bs=1m count= 3000  411 be/3 root        0.00 b/s    35.60 K/S  0.00 % 63.68 % [JBD2/SDA3-8]

The #iotop lists all the processes in the order of the large to small that are occupied by IO.

You can toggle the display interactively via the command options

#iotop-O is more user-friendly, only lists the most occupied IO, and uses occupancy.


This article from "Live" blog, reproduced please contact the author!

The disk I/O is not high enough, what can I do to see the processes that Occupy I/O?

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.