源中自带此命令,直接安装
-
[t@bjb0541 ~]$ sudo dnf install iotop -y
-
Last metadata expiration check performed 6:20:24 ago on Thu Feb 18 09:17:53 2016.
-
Dependencies resolved.
-
=====================================================================================================================================================
-
Package Arch Version Repository Size
-
=====================================================================================================================================================
-
Installing:
-
iotop noarch 0.6-6.fc23 fedora 57 k
-
-
Transaction Summary
-
=====================================================================================================================================================
-
Install 1 Package
-
-
Total download size: 57 k
-
Installed size: 156 k
-
Downloading Packages:
-
iotop-0.6-6.fc23.noarch.rpm 899 kB/s | 57 kB 00:00
-
-----------------------------------------------------------------------------------------------------------------------------------------------------
-
Total 858 kB/s | 57 kB 00:00
-
Running transaction check
-
Transaction check succeeded.
-
Running transaction test
-
Transaction test succeeded.
-
Running transaction
-
Installing : iotop-0.6-6.fc23.noarch 1/1
-
Verifying : iotop-0.6-6.fc23.noarch 1/1
-
-
Installed:
-
iotop.noarch 0.6-6.fc23
-
-
iotop是管理命令,普通用户没有权限运行.
-
[t@bjb0541 ~]$ sudo iotop --help
-
Usage: /sbin/iotop [OPTIONS]
-
-
DISK READ and DISK WRITE are the block I/O bandwidth used during the sampling
-
period. SWAPIN and IO are the percentages of time the thread spent respectively
-
while swapping in and waiting on I/O more generally. PRIO is the I/O priority at
-
which the thread is running (set using the ionice command).
-
-
Controls: left and right arrows to change the sorting column, r to invert the
-
sorting order, o to toggle the --only option, p to toggle the --processes
-
option, a to toggle the --accumulated option, i to change I/O priority, q to
-
quit, any other key to force a refresh.
-
-
Options:
-
--version show program's version number and exit
-
-h, --help show this help message and exit
-
-o, --only only show processes or threads actually doing I/O
-
-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
-
-a, --accumulated show accumulated I/O instead of bandwidth
-
-k, --kilobytes use kilobytes instead of a human friendly unit
-
-t, --time add a timestamp on each line (implies --batch)
-
-q, --quiet suppress some lines of header (implies --batch)
iotop键盘操作方式:
<-,-> : 左右键切换排序列
r : 反向排序当前列,在列名后面有一个方向箭头指示,<由小到大,>由大到小
o : 切换只显示有i/o活动的进行,等同 --only选项
p : 切换只显示进程,不显示多线程,等同--processes选项
a : 切换显示累加值,而不是带宽值,等同--accumulated选项
i : 改变I/O优先级
q : 退出
其它任何键: 刷新
运行
-
[t@bjb0541 ~]$ sudo iotop
界面展示:
阅读(2056) | 评论(0) | 转发(0) |