[20140707]linux下使用iotop.txt

简介: [20140707]linux下使用iotop.txt 生产系统disk io量很大,并且很慢,像通过os命令了解那个进程存在大量io.使用vmstat,dstat,nmon只能了解大概的情况,不能确定那个 进程.

[20140707]linux下使用iotop.txt

生产系统disk io量很大,并且很慢,像通过os命令了解那个进程存在大量io.使用vmstat,dstat,nmon只能了解大概的情况,不能确定那个
进程.


检查安装包发现iotop可以满足需要,我安装的是centos 6.2.

参数如下:
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 pressing 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.

       -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.


常用参数:
iotop -o -u oracle -a -k

其中-a 是累积IO.

这样很容易知道那个进程消耗的IO很大.

#  lsof -i -Pn  | grep

目录
相关文章
|
监控 Ubuntu Linux
linux性能监控:IO性能监控命令之iotop命令
linux性能监控:IO性能监控命令之iotop命令
1623 0
linux性能监控:IO性能监控命令之iotop命令
|
监控 固态存储 Ubuntu
linux 【监控io】iotop命令详解
linux 【监控io】iotop命令详解
linux 【监控io】iotop命令详解
|
监控 Linux 索引
【Linux】之【磁盘】相关的命令及解析[df、du、iostat、iotop]
df命令来自于英文词组”Disk Free“的缩写,其功能是用于显示系统上磁盘空间的使用量情况。df命令显示的磁盘使用量情况含可用、已有及使用率等信息,默认单位为Kb,建议使用-h参数进行单位换算。
244 0
【Linux】之【磁盘】相关的命令及解析[df、du、iostat、iotop]
|
监控 Oracle 关系型数据库
Linux iotop工具简介
Linux iotop工具简介iotop的简介: iotop是一款开源、免费的用来监控磁盘I/O使用状况的类似top命令的工具,iotop可以监控进程的I/O信息。它是Python语言编写的,与iostat工具比较,iostat是系统级别的IO监控,而iotop是进程级别IO监控。
1877 0
|
监控 Linux Python
Linux系统监控命令之iotop
1、iotop命令 iotop命令是一个用来监视磁盘I/O使用状况的top类工具。iotop具有与top相似的UI,其中包括PID、用户、I/O、进程等相关信息。Linux下的IO统计工具如iostat,nmon等大多数是只能统计到per设备的读写情况,如果你想知道每个进程是如何使用IO的就比较麻烦,使用iotop命令可以很方便的查看。
1378 0
|
Linux
linux 查看硬盘io工具 iotop 解析
源中自带此命令,直接安装 点击(此处)折叠或打开 [t@bjb0541 ~]$ sudo dnf install iotop -y Last metadata expiration ch...
983 0
|
5天前
|
机器学习/深度学习 缓存 监控
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瓶颈。
|
2天前
|
监控 Linux Windows
50个必知的Linux命令技巧,你都掌握了吗?(下)
50个必知的Linux命令技巧,你都掌握了吗?(下)
|
2天前
|
Linux Shell Windows
Linux 常用基本命令
Linux 常用基本命令