Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1781628
  • 博文数量: 276
  • 博客积分: 1574
  • 博客等级: 上尉
  • 技术积分: 2894
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-26 23:23
个人简介

生活的美妙在于,不知道一下秒是惊艳还是伤神,时光流转,珍惜现在的拥有的时光

文章分类

全部博文(276)

文章存档

2017年(17)

2016年(131)

2015年(63)

2013年(2)

2012年(32)

2011年(31)

分类: 系统运维

2016-02-18 15:36:37

源中自带此命令,直接安装

点击(此处)折叠或打开

  1. [t@bjb0541 ~]$ sudo dnf install iotop -y
  2. Last metadata expiration check performed 6:20:24 ago on Thu Feb 18 09:17:53 2016.
  3. Dependencies resolved.
  4. =====================================================================================================================================================
  5.  Package Arch Version Repository Size
  6. =====================================================================================================================================================
  7. Installing:
  8.  iotop noarch 0.6-6.fc23 fedora 57 k

  9. Transaction Summary
  10. =====================================================================================================================================================
  11. Install 1 Package

  12. Total download size: 57 k
  13. Installed size: 156 k
  14. Downloading Packages:
  15. iotop-0.6-6.fc23.noarch.rpm 899 kB/s | 57 kB 00:00
  16. -----------------------------------------------------------------------------------------------------------------------------------------------------
  17. Total 858 kB/s | 57 kB 00:00
  18. Running transaction check
  19. Transaction check succeeded.
  20. Running transaction test
  21. Transaction test succeeded.
  22. Running transaction
  23.   Installing : iotop-0.6-6.fc23.noarch 1/1
  24.   Verifying : iotop-0.6-6.fc23.noarch 1/1

  25. Installed:
  26.   iotop.noarch 0.6-6.fc23



iotop是管理命令,普通用户没有权限运行.

点击(此处)折叠或打开

  1. [t@bjb0541 ~]$ sudo iotop --help
  2. Usage: /sbin/iotop [OPTIONS]

  3. DISK READ and DISK WRITE are the block I/O bandwidth used during the sampling
  4. period. SWAPIN and IO are the percentages of time the thread spent respectively
  5. while swapping in and waiting on I/O more generally. PRIO is the I/O priority at
  6. which the thread is running (set using the ionice command).

  7. Controls: left and right arrows to change the sorting column, r to invert the
  8. sorting order, o to toggle the --only option, p to toggle the --processes
  9. option, a to toggle the --accumulated option, i to change I/O priority, q to
  10. quit, any other key to force a refresh.

  11. Options:
  12. --version show program's version number and exit
  13. -h, --help show this help message and exit
  14. -o, --only only show processes or threads actually doing I/O
  15. -b, --batch non-interactive mode
  16. -n NUM, --iter=NUM number of iterations before ending [infinite]
  17. -d SEC, --delay=SEC delay between iterations [1 second]
  18. -p PID, --pid=PID processes/threads to monitor [all]
  19. -u USER, --user=USER users to monitor [all]
  20. -P, --processes only show processes, not all threads
  21. -a, --accumulated show accumulated I/O instead of bandwidth
  22. -k, --kilobytes use kilobytes instead of a human friendly unit
  23. -t, --time add a timestamp on each line (implies --batch)
  24. -q, --quiet suppress some lines of header (implies --batch)
iotop键盘操作方式:
<-,-> :  左右键切换排序列
r        :  反向排序当前列,在列名后面有一个方向箭头指示,<由小到大,>由大到小
o       :  切换只显示有i/o活动的进行,等同 --only选项
p       :  切换只显示进程,不显示多线程,等同--processes选项
a       :  切换显示累加值,而不是带宽值,等同--accumulated选项
i        :  改变I/O优先级
q       :  退出 
其它任何键:  刷新
运行

点击(此处)折叠或打开

  1. [t@bjb0541 ~]$ sudo iotop


界面展示:

阅读(2011) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~