一、iotop
1. 用法
/# iotop --help Usage: iotop [-h] [-P] [-d <delay>] [-n <cycles>] [-s <column>] -a Show byte count instead of rate -d Set the delay between refreshes in seconds. -h Display this help screen. -m Set the number of processes or threads to show -n Set the number of refreshes before exiting. -P Show processes instead of the default threads. -s Set the column to sort by: pid, read, write, total, io, swap, faults, sched, mem or delay.
2. 示例
iotop -d 5 //统计最近5秒的
iotop -m 4 //循环显示4个线程
iotop -m 4 -n 3 //只循环显示3次
iotop -P -m 4 //以进程为单位进行展示而不是线程
iotop -s faults -m 4 //按faults进行排序,可选的还有 pid, read, write, total, io, swap, faults, sched, mem or delay
/ # iotop | head -5 --- IO (KiB/s) --- --- faults --- ----------- delayed on ---------- //单位KB/s PID Command read write total major minor IO swap sched mem total 1165 logcat 0 212 212 0 0 0.00% 0.00% 0.00% 0.00% 0.00% 26337 peechservice 0 44 44 0 3451 0.00% 0.00% 0.00% 0.00% 0.00% 2808 queued-work-loo 0 12 12 0 3 0.00% 0.00% 0.00% 0.00% 0.00% # iotop -a | head -5 ---- IO (KiB) ---- --- faults --- ----------- delayed on ---------- //单位KB PID Command read write total major minor IO swap sched mem total 1165 logcat 0 240 240 0 0 0.00% 0.00% 0.00% 0.00% 0.00% 1167 logcat 0 36 36 0 0 0.00% 0.00% 0.00% 0.00% 0.00% 2921 Thread-4 0 12 12 0 0 0.00% 0.00% 0.00% 0.00% 0.00%
3. 相关命令
# io ionice iorap.cmd.maintenance iorap.prefetcherd iorenice iorap.cmd.compiler iorap.inode2filename iorapd iotop
标签:---,性能,iotop,faults,IO,工具,total,0.00% From: https://www.cnblogs.com/hellokitty2/p/18676466