Home > Linux, 工具介绍 > iotop统计linux下per进程的IO活动

iotop统计linux下per进程的IO活动

March 10th, 2011

原创文章,转载请注明: 转载自系统技术非业余研究

本文链接地址: iotop统计linux下per进程的IO活动

Linux下的IO统计工具如iostat, nmon等大多数是只能统计到per设备的读写情况, 如果你想知道每个进程是如何使用IO的就比较麻烦.
当然如果你会systemtap, 或者blktrace这些事情难不到你, 但是没专用工具总不是很舒服的. 幸运的是Linux 2.6.20内核以后提供了基于每个进程的IO记账功能,所以就有了类似iotop这样方便的工具.

官网地址: http://guichaz.free.fr/iotop/

Iotop is a Python program with a top like UI used to show of behalf of which process is the I/O going on.

在RHEL6或者ubuntu下使用就非常简单, 我简单的演示下ubuntu10下使用:
安装先:
$ apt-get install iotop

直接运行就好:
$iotop

截图如下:

它还支持累加方式显示IO情况,挺方便的,具体参考man iotop

玩的开心.

Post Footer automatically generated by wp-posturl plugin for wordpress.

Categories: Linux, 工具介绍 Tags: ,
  1. Magicloud
    March 11th, 2011 at 09:17 | #1

    Interestingly enough, I’ve made a similar tool in Haskell.

  2. March 9th, 2012 at 15:43 | #2

    5.8已经支持了

    Yu Feng Reply:

Comments are closed.