百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

iotop

> 编程语言
开源

一个用于 IO 的顶级工具

670 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个用于 IO 的顶级工具

iotop

Is your Linux server too slow or load is too high? One of the possible causes of such symptoms may be high IO (input/output) waiting time, which basically means that some of your processes need to read or write to a hard drive while it is too slow and not ready yet, serving data for some other processes.

Common practice is to use iostat -x in order to find out which block device (hard drive) is slow, but this information is not always helpful. It could help you much more if you knew which process reads or writes the most data from your slow disk, so you could renice it using ionice or even kill it.

iotop identifies processes that use high amount of input/output requests on your machine. It is similar to the well known top utility, but instead of showing you what consumes CPU the most, it lists processes by their IO usage. Inspired by iotop Python script from Guillaume Chazarain, rewritten in C by Vyacheslav Trushkin and improved by Boian Bonev so it runs without Python at all.

iotop is licensed GPL-2.0+

Sample screenshot

How to install from binary package

Many Linux distributions already include this program under the name iotop-c.

If your distribution is relatively new, chances are that it already has iotop packaged. Follow these instructions.

In case it is not available, follow the How to build from source instructions.

Debian/Devuan/Ubuntu/other derivatives  

Use the following command (note that -y disables confirmation prompts):

sudo apt install iotop-c -y

Fedora  

Use the following command (note that -y disables confirmation prompts):

sudo dnf install iotop-c -y

CentOS 7/CentOS 8/RHEL 7/RHEL 8/RHEL 9  

Use the following commands (note that -y disables confirmation prompts):

sudo yum install epel-release -y
sudo yum install iotop-c -y

Void Linux  

Use the following command:

sudo xbps-install iotop-c

Arch Linux  

Use the following command:

sudo pacman -S iotop-c

Alpine Linux  

Use the following commands:

sudo sed -i '/community/s/^#//g' /etc/apk/repositories
sudo apk add iotop-c

How to build from source

Please note that the installation and the usage of this program require root access.

Debian/Devuan/Ubuntu/other derivatives  

Use the following commands (note that -y disables confirmation prompts):

apt install git build-essential libncurses-dev libncursesw5-dev pkg-config -y
git clone https://github.com/Tomas-M/iotop
cd iotop
make -j

Fedora  

Use the following commands (note that -y disables confirmation prompts):

dnf install git gcc make ncurses-devel pkgconfig -y
git clone https://github.com/Tomas-M/iotop
cd iotop
make -j

CentOS 8/RHEL 8/RHEL 9  

Use the following commands (note that -y disables confirmation prompts):

yum install git gcc make ncurses-devel pkgconfig -y
git clone https://github.com/Tomas-M/iotop
cd iotop
make -j

CentOS 7/RHEL 7  

Note: On CentOS 7/RHEL 7 gcc does not support -Wdate-time and needs a -Wno-strict-overflow to suppress a pile of bogus warnings.

Use the following commands (note that -y disables confirmation prompts):

yum install git gcc make ncurses-devel pkgconfig -y
git clone https://github.com/Tomas-M/iotop
cd iotop
sed -i 's/-Wdate-time/-Wno-strict-overflow/' Makefile
make -j

Void Linux  

Use the following commands:

xbps-install git base-devel ncurses-devel
git clone https://github.com/Tomas-M/iotop
cd iotop
make -j

How to install as a system command

sudo make install

How to update to latest version

cd iotop && git checkout master && git pull && make clean && make -j

Options

-v, --version          show program's version number and exit
-h, --help             show this help message and exit
-H, --help-type=TYPE   set type of interactive help (none, win or inline)
-o, --only             only show processes or threads actually doing I/O
    --no-only          show all processes or threads
-b, --batch            non-interactive mode
-n NUM, --iter=NUM     number of iterations before ending [infinite]
-d SEC, --delay=SEC    delay between iterations [1 second]
-p PID, --pid=PID      processes/threads to monitor [all]
-u USER, --user=USER   users to monitor [all]
-P, --processes        only show processes, not all threads
    --threads          show all threads
-a, --accumulated      show accumulated I/O instead of bandwidth
    --no-accumulated   show bandwidth
-A, --accum-bw         show accumulated bandwidth
    --no-accum-bw      show last iteration bandwidth
-k, --kilobytes        use kilobytes instead of a human friendly unit
    --no-kilobytes     use human friendly unit
-t, --time             add a timestamp on each line (implies --batch)
-c, --fullcmdline      show full command line
    --no-fullcmdline   show program names only
-1, --hide-pid         hide PID/TID column
    --show-pid         show PID/TID column
-2, --hide-prio        hide PRIO column
    --show-prio        show PRIO column
-3, --hide-user        hide USER column
    --show-user        show USER column
-4, --hide-read        hide DISK READ column
    --show-read        show DISK READ column
-5, --hide-write       hide DISK WRITE column
    --show-write       show DISK WRITE column
-6, --hide-swapin      hide SWAPIN column
    --show-swapin      show SWAPIN column
-7, --hide-io          hide IO column
    --show-io          show IO column
-8, --hide-graph       hide GRAPH column
    --show-graph       show GRAPH column
-9, --hide-command     hide COMMAND column
    --show-command     show COMMAND column
-g TYPE, --grtype=TYPE set graph data source (io, r, w, rw and sw)
-R, --reverse-graph    reverse GRAPH column direction
    --no-reverse-graph do not reverse GRAPH column direction
-q, --quiet            print column names only on the first run (implies --batch)
                       a second -q will also suppress the first run column names
                       a third -q will suppress the I/O summary
-x, --dead-x           show exited processes/threads with letter x
    --no-dead-x        show exited processes/threads with background
-e, --hide-exited      hide exited processes
    --show-exited      show exited processes
-l, --no-color         do not colorize values
    --color            colorize values
-T, --hide-time        hide current time
    --show-time        show current time
    --si               use SI units of 1000 when printing values
    --no-si            use non-SI units of 1024 when printing values
    --threshold=1..10  threshold to switch to next unit
    --ascii            disable using Unicode
    --unicode          use Unicode drawing chars
-N, --inverse          use inverse interface (black on white)
    --filter=REGEX     filter processes by TID and COMMAND
-W, --write            write preceding options to the config and exit

Contribute

iotop was originally written by Vyacheslav Trushkin in 2014, distributed by Tomas Matejicek and later improved by Boian Bonev.

iotop is maintaned on GitHub at https://github.com/Tomas-M/iotop

The preferred way to contribute to the project is to file a pull request at GitHub.

Contacts of current maintainers are:

  • Tomas Matejicek <[email protected]>
  • Boian Bonev <[email protected]>

The iotop community gathers in #iotop on libera.chat:

  • ircs://irc.libera.chat:6697/#iotop
  • https://web.libera.chat/#iotop

Notable contributions (ordered by time of last contribution):

  • Renan Rodrigo <[email protected]> - Contributed autopkgtests
  • Roshless <[email protected]> - Alpine Linux installation instructions
  • Michal Hlavinka <[email protected]> - Fedora/RedHat packaging and testing
  • Miko Larsson <[email protected]> - Control-flow integrity (CFI) fixes and testing
  • Christian Heusel <[email protected]> - Arch Linux packaging and testing
  • Leah Neukirchen <[email protected]> - Void Linux packaging and testing
  • Vitaly Chikunov <[email protected]> - ALT Linux packaging and testing
  • Matteo Bernardini <[email protected]> - SlackBuilds packaging and testing
  • Jonathan Papineau <[email protected]> - OpenSUSE packaging and testing
  • Vladi Belperchinov-Shabanski <[email protected]> - Scroller code improvement, multiple reviews and ideas
  • Alexander Monakov <[email protected]> - Improvement of ncurses color handling
  • Alexander Rezvov <[email protected]> - NixOS packaging and testing
  • EinProfiSpieler - README.md, build system improvements
  • Paul Wise <[email protected]> - Debian packaging, man page, multiple reviews and ideas
  • Rumen Jekov <[email protected]> - Arch Linux packaging and testing
  • Milan P. Stanić <[email protected]> - Alpine Linux packaging and testing
  • Arthur Zamarin <[email protected]> - Gentoo packaging and testing
  • Yuriy M. Kaminskiy <[email protected]> - Code fixes and improvements
  • alicektx <[email protected]> - Documentation improvements
  • Filip Kofron <[email protected]> - Build system improvements

Thanks! This project is what it is now because the steam you have put into it

NB. In case you have contributed to the project and do not see your name in the list, please note that the above list is updated manually and it is an omission - notify the maintainers to fix it.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言