linux 查看硬盘io工具 iotop 解析

简介: 源中自带此命令,直接安装 点击(此处)折叠或打开 [t@bjb0541 ~]$ sudo dnf install iotop -y Last metadata expiration ch...
源中自带此命令,直接安装

点击(此处)折叠或打开

  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


界面展示:

目录
相关文章
|
18天前
|
监控 Unix Linux
Linux操作系统调优相关工具(四)查看Network运行状态 和系统整体运行状态
Linux操作系统调优相关工具(四)查看Network运行状态 和系统整体运行状态
31 0
|
20天前
|
存储 缓存 Linux
Linux IO的奥秘:深入探索数据流动的魔法
Linux I/O(输入/输出)系统是其核心功能之一,负责处理数据在系统内部及与外界之间的流动。为了优化这一流程,Linux进行了一系列努力和抽象化,以提高效率、灵活性和易用性。🚀
Linux IO的奥秘:深入探索数据流动的魔法
|
7天前
|
机器学习/深度学习 缓存 监控
linux查看CPU、内存、网络、磁盘IO命令
`Linux`系统中,使用`top`命令查看CPU状态,要查看CPU详细信息,可利用`cat /proc/cpuinfo`相关命令。`free`命令用于查看内存使用情况。网络相关命令包括`ifconfig`(查看网卡状态)、`ifdown/ifup`(禁用/启用网卡)、`netstat`(列出网络连接,如`-tuln`组合)以及`nslookup`、`ping`、`telnet`、`traceroute`等。磁盘IO方面,`iostat`(如`-k -p ALL`)显示磁盘IO统计,`iotop`(如`-o -d 1`)则用于查看磁盘IO瓶颈。
|
18天前
|
Linux
Linux操作系统调优相关工具(三)查看IO运行状态相关工具 查看哪个磁盘或分区最繁忙?
Linux操作系统调优相关工具(三)查看IO运行状态相关工具 查看哪个磁盘或分区最繁忙?
21 0
|
3天前
|
JSON Unix Linux
Linux系统之jq工具的基本使用
Linux系统之jq工具的基本使用
32 2
|
4天前
|
监控 安全 Linux
Linux系统之安装ServerBee服务器监控工具
【4月更文挑战第22天】Linux系统之安装ServerBee服务器监控工具
43 2
|
4天前
|
编解码 Linux 数据安全/隐私保护
linux工具之curl与wget高级使用
linux工具之curl与wget高级使用
|
20天前
|
存储 缓存 安全
Linux IO:打开数据之窗的魔法
Linux I/O(输入/输出)是操作系统中一个至关重要的组成部分,它涉及到数据在内存🧠、存储设备💾、网络接口🌐等之间的传输过程。在Linux中,I/O操作不仅仅是文件读写那么简单,它包括了一系列复杂的机制和策略,旨在提高数据处理的效率,保证系统的稳定性和性能。📊
Linux IO:打开数据之窗的魔法
|
2天前
|
XML 人工智能 Java
Spring Bean名称生成规则(含源码解析、自定义Spring Bean名称方式)
Spring Bean名称生成规则(含源码解析、自定义Spring Bean名称方式)
|
11天前
yolo-world 源码解析(六)(2)
yolo-world 源码解析(六)
22 0