查看CPU使用情况用top,查看I/O使用情况就需要iotop。这个命令是在 kernel v2.6.20中添加,安装的时候要注意内核的版本号。
iotop常用快捷键
1. 左右箭头 --> 改变排序方式,默认是按IO排序
2. r --> 改变排序顺序
3. o --> 只显示有IO输出的进程
4. p --> 进程/线程的显示方式的切换
5. a --> 显示累积使用量
6. q --> 退出

一、安装

     yum install iotop

二、man iotop

NAME

       iotop - simple top-like I/O monitor

SYNOPSIS

       iotop [OPTIONS]

DESCRIPTION

       iotop watches I/O usage information output by the Linux kernel (requires 2.6.20 or later) and displays a table of current I/O usage by processes

       or threads on the system. At least the CONFIG_TASK_DELAY_ACCT and CONFIG_TASK_IO_ACCOUNTING options need to be  enabled  in  your  Linux  kernel

       build configuration, these options depend on CONFIG_TASKSTATS.

       iotop displays columns for the I/O bandwidth read and written by each process/thread during the sampling period. It also displays the percentage

       of time the thread/process spent while swapping in and while waiting on I/O. For each process, its I/O  priority  (class/level)  is  shown.   In

       addition, the total I/O bandwidth read and written during the sampling period is displayed at the top of the interface.

       Use  the left and right arrows to change the sorting, r to reverse the sorting order, o to toggle the --only option, p to toggle the --processes

       option, a to toggle the --accumulated option, q to quit or i to change the priority of a thread or a process’  thread(s).  Any  other  key  will

       force a refresh.

OPTIONS

       --version

              Show the version number and exit

       -h, --help

              Show usage information and exit

       -o, --only

              Only show processes or threads actually doing I/O, instead of showing all processes or threads. This can be dynamically toggled by press-

              ing o.

       -b, --batch

              Turn on non-interactive mode.  Useful for logging I/O usage over time.

       -n NUM, --iter=NUM

              Set the number of iterations before quitting (never quit by default).  This is most useful in non-interactive mode.

       -d SEC, --delay=SEC

              Set the delay between iterations in seconds (1 second by default).  Accepts non-integer values such as 1.1 seconds.

       -p PID, --pid=PID

              A list of processes/threads to monitor (all by default).

       -u USER, --user=USER

              A list of users to monitor (all by default)

       -P, --processes

              Only show processes. Normally iotop shows all threads.

       -u USER, --user=USER

              A list of users to monitor (all by default)

       -P, --processes

              Only show processes. Normally iotop shows all threads.

       -a, --accumulated

              Show accumulated I/O instead of bandwidth. In this mode, iotop shows the amount of I/O processes have done since iotop started.

       -k, --kilobytes

              Use kilobytes instead of a human friendly unit. This mode is useful when scripting the batch mode of iotop. Instead of choosing the  most

              appropriate unit iotop will display all sizes in kilobytes.

       -t, --time

              Add a timestamp on each line (implies --batch). Each line will be prefixed by the current time.

       -q, --quiet

              suppress some lines of header (implies --batch). This option can be specified up to three times to remove header lines.

              -q     column names are only printed on the first iteration,

              -qq    column names are never printed,

              -qqq   the I/O summary is never printed.

SEE ALSO

       ionice(1), top(1), vmstat(1)

AUTHOR

       iotop was written by Guillaume Chazarain.

       This manual page was started by Paul Wise for the Debian project and is placed in the public domain.

linux命令——iotop的更多相关文章

  1. Linux 系统管理命令 - iotop - 动态显示磁盘 I/O 统计信息

    命令详解 重要星级: ★★★★☆ 功能说明: iotop 命令是一款实时监控磁盘 I/O 的工具, 但必须以 root 用户的身份运行.使用 iotop 命令可以很方便的查看每个进程使用磁盘 I/O ...

  2. 转摘Linux命令工作中常用总结

    Linux命令工作中常用总结   1. 搜索 在vi和vim中如果打开一个很大的文件,不容易找到对应的内容,可以使用自带的搜索关键字进行搜索定位: 在vi和vim界面中输入:"/" ...

  3. Linux centos系统安装后的基本配置,Linux命令

    一.centos系统安装后的基本配置 .常用软件安装 yum install -y bash-completion vim lrzsz wget expect net-tools nc nmap tr ...

  4. 《Linux命令学习手册》系列分享专栏

    <Linux命令学习手册>系列分享专栏 <Linux命令学习手册>已整理成PDF文档,点击可直接下载至本地查阅https://www.webfalse.com/read/207 ...

  5. linux命令汇总1

    允许非root用户使用“sudo” root身份登录系统,执行“visudo”,根据示例添加新的一个规则(记住输入的密码是当前用户密码,而不是root密码)#不需要密码执行sudo命令hadoop   ...

  6. 工作中常用Linux命令--服务器运维

    工作中常用Linux命令--服务器运维 lsof查看端口使用情况 lsof -i:8080更多lsof命令使用说明:http://www.cnblogs.com/peida/archive/2013/ ...

  7. 我常用的一些linux命令

    之前做过两年的运维,用过很多命令,深切体会到某些linux命令熟练掌握后对效率提升有多大.举个简单的例子,在做了研发后经常会有跑一些数据,对于结果数据的处理,我们的产品同学一般都习惯于用excel做统 ...

  8. 常用的linux命令大全

    之前做过两年的运维,用过很多命令,深切体会到某些linux命令熟练掌握后对效率提升有多大.举个简单的例子,在做了研发后经常会有跑一些数据,对于结果数据的处理,我们的产品同学一般都习惯于用excel做统 ...

  9. 001 研发同学必学哪些 Linux 命令?

    01 研发同学为啥要掌握 Linux 命令? 身为研发同学,Linux 是绕不过去的一个小山包,不是说要掌握的十分精通,在程序员界里做个极客,也不是说要抢了 Devops 同学的饭碗,但至少要做到摆脱 ...

随机推荐

  1. 我的MYSQL学习心得(十二)

    原文:我的MYSQL学习心得(十二) 我的MYSQL学习心得(十二) 我的MYSQL学习心得(一) 我的MYSQL学习心得(二) 我的MYSQL学习心得(三) 我的MYSQL学习心得(四) 我的MYS ...

  2. windows下用c实现Socket通信

    原文:windows下用c实现Socket通信 原本以为c是跨平台,所以,c在windows下和linux下的程序应该是类似于Java,什么都不用改变的,今儿才恍然大悟,他们的类库不一样啊-- 下面我 ...

  3. C++并发编程学习笔记&lt;1&gt; 入门

    入门 多线程C++程序是什么样子的? 它看上去和其它全部C++程序一样,一般是变量.类以及函数的组合. 唯一真正的差别在于某些函数能够并发执行, 当然.为了并发地执行函数,必须使用特定的函数以及对象来 ...

  4. Visual Studio 2012使用水晶报表Crystal Report

    原文:Visual Studio 2012使用水晶报表Crystal Report SAP在 2013年1月14日 released SAP Crystal Reports,developer ver ...

  5. 字符串的使用(string,StringBuffer,StringBuilder)

    String中==与equals的区别:==比较字符串中的引用相等equals比较字符串中的内容相等(因为字符串有重写equals方法) string常用的方法 返回类型 方法 操作功能 Char c ...

  6. Node填坑教程——过滤器

    所谓“过滤器”,只是一个概念,可以理解是一个路由,也可以理解为一个中间件.原理非常简单,就是利用匹配规则,让其有限匹配在正常的路由前面处理就行了. 比如有如下路由 app.get('/', funct ...

  7. 使用 ArcGIS Online和APP进行监控操作和数据采集

    主要介绍的App是Operations Dashboard for ArcGIS 和 Collector for ArcGIS,它们 提高了组织内日常操作的效率.精度和响应速度. 已经购买了 ArcG ...

  8. [置顶] Hibernate从入门到精通(十)多对多单向关联映射

    上一篇文章Hibernate从入门到精通(九)一对多双向关联映射中我们讲解了一下关于一对多关联映射的相关内容,这次我们继续多对多单向关联映射. 多对多单向关联映射 在讲解多对多单向关联映射之前,首先看 ...

  9. C#伪彩色处理

    伪彩色处理是指将灰度图像转换成彩色图象.因为人眼对于彩色的分辨能力远高于对灰度图像的分辨能力,所以将灰度图像转换成彩色可以提高人眼对图像细节的辨别能力.伪彩色并不能真实的反映图像像的彩色情况. 效果图 ...

  10. D0

    刚到长乐就被机房里众大神的气场给压倒了 orz....... 然后默默的感觉到自己貌似已经有一个星期没有打题了...就各种忧伤.... 还是说一下今天的计划吧 嗯傍晚5.30-6.00 &&a ...