当前位置: 移动技术网 > 科技>操作系统>Linux > linux iotop 安装使用教程(显示硬盘IO读写情况)

linux iotop 安装使用教程(显示硬盘IO读写情况)

2018年11月08日  | 移动技术网科技  | 我要评论

官方的说明:

linux has always been able to show how much i/o was going on (the bi and bo columns of the vmstat 1 command).
iotop is a python program with a top like ui used to show of behalf of which process is the i/o going on. it requires python ≥ 2.7 and a linux kernel ≥ 2.6.20 with the task_delay_acct config_taskstats, task_io_accounting and config_vm_event_counters options on.

iotop安装:

直接yum安装。

yum install iotop 

在ubuntu里安装命令是: sudo apt-get install iotop
安装好之后在终端输入:iotop就可以了
或者:

git clone git://repo.or.cz/iotop.git





iotop使用说明:

可以用左右箭头操作,按 r 是相反方向,按 o 是动态切换

用法 iotop -参数

–version 查看版本信息的
-h, –help 查看帮助信息的
-o, –only 只显示在划硬盘的程序
-b, –batch 批量处理 用来记录日志的
-n num  设定循环几次
-d sec, –delay=sec  设定显示时间间隔

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网