Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to understand the iotop parameters of IO Analysis tool in Linux system

Shulou Source: shulou.com Published: 2022-06-01 07:45:43 09月13日 Update

This article mainly explains "how to understand the iotop parameters of the Linux system IO analysis tool". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to understand the iotop parameters of the Linux system IO analysis tool".

Brief introduction:

Iotop-simple top-like I do O monitor

Iotop is a top-like tool for monitoring disk IO usage, which can be used by which program (requires 2.6.20 or later)

Installation:

The code is as follows:

Yum-y install iotop

Usage:

The code is as follows:

Iotop [OPTIONS]

Options:

The code is as follows:

-- version # shows version number

-h,-- help # displays help information

-o,-- only # shows what the process or thread is actually doing, but not all of them. You can switch to press o at any time.

-b,-- batch # runs in non-interactive mode

-n NUM,-- iter=NUM # sets the number of times to display in non-interactive mode

-d SEC,-- delay=SEC # sets the number of seconds between displays and supports non-integer values

-p PID,-- pid=PID # displays only the information of the specified PID

-u USER,-- user=USER # displays information about the process of the specified user

-P,-- processes # shows only processes, usually all threads

-a,-- accumulated # shows the total number of IO completed by each thread since iotop was started

-k,-- kilobytes # is displayed in kilobytes

-t,-- time # add a current time before each line

-Q,-- quiet # suppress some lines of header (implies-- batch) This option can be specified up to three times to remove header lines.

-q column names are only printed on the first iteration

-qq column names are never printed

-qqq the I got O summary is never printed.

Available commands (press the appropriate key after running the iotop command):

Use left and right to change the sort (arrow keys to change the sort order), and you can also use the following command:

The code is as follows:

R: reverse sort

O: switch to option-- only

P: switch to-- processes option

A: switch to the-- accumulated option

Q: exit

I: change the priority of the thread

Example:

The code is as follows:

$iotop

$iotop-b-n 3-d 5

Thank you for your reading, the above is the content of "how to understand the iotop parameters of the Linux system IO analysis tool". After the study of this article, I believe you have a deeper understanding of how to understand the iotop parameters of the Linux system IO analysis tool, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Tools code parameters systems analysis information threads switching commands processes learning sorting interaction content mode disk run one line priority example Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Docker NVidia MariaDB Shulou Information