文件io消耗分析

26 篇文章 0 订阅
Linux 3.2.0-23-generic (joeyon)    09/08/2014      _x86_64_        (8 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.93    0.00    0.26    0.17    0.00   98.64

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               4.31        19.05        58.59  405450960 1246675495
dm-0              2.15         3.67         7.82   78042149  166417380
dm-1             12.99        15.38        50.76  327288244 1080124084

linux@joeyon:~$ pidstat
Linux 3.2.0-23-generic (joeyon)    09/08/2014      _x86_64_        (8 CPU)

12:07:27 PM       PID    %usr %system  %guest    %CPU   CPU  Command
12:07:27 PM         1    0.00    0.00    0.00    0.00     6  init
12:07:27 PM         2    0.00    0.00    0.00    0.00     7  kthreadd
12:07:27 PM         3    0.00    0.01    0.00    0.01     0  ksoftirqd/0
12:07:27 PM         7    0.00    0.00    0.00    0.00     0  watchdog/0
12:07:27 PM         9    0.00    0.12    0.00    0.12     1  kworker/1:0
12:07:27 PM        10    0.00    0.00    0.00    0.00     1  ksoftirqd/1
12:07:27 PM        12    0.00    0.00    0.00    0.00     1  watchdog/1
12:07:27 PM        15    0.00    0.00    0.00    0.00     2  ksoftirqd/2
12:07:27 PM        16    0.00    0.00    0.00    0.00     2  watchdog/2
12:07:27 PM        19    0.00    0.00    0.00    0.00     3  ksoftirqd/3
12:07:27 PM        20    0.00    0.00    0.00    0.00     3  watchdog/3
12:07:27 PM        23    0.00    0.00    0.00    0.00     4  ksoftirqd/4
12:07:27 PM        24    0.00    0.00    0.00    0.00     4  watchdog/4
12:07:27 PM        25    0.00   31.57    0.00   31.57     5  migration/5
12:07:27 PM        27    0.00    0.00    0.00    0.00     5  ksoftirqd/5
12:07:27 PM        28    0.00    0.00    0.00    0.00     5  watchdog/5
12:07:27 PM        31    0.00    0.00    0.00    0.00     6  ksoftirqd/6
12:07:27 PM        32    0.00    0.00    0.00    0.00     6  watchdog/6
12:07:27 PM        35    0.00    0.00    0.00    0.00     7  ksoftirqd/7
12:07:27 PM        36    0.00    0.00    0.00    0.00     7  watchdog/7
12:07:27 PM        42    0.00    0.00    0.00    0.00     1  sync_supers
12:07:27 PM        43    0.00    0.00    0.00    0.00     7  bdi-default
12:07:27 PM        50    0.00    0.08    0.00    0.08     2  kworker/2:1
12:07:27 PM        51    0.00    0.04    0.00    0.04     3  kworker/3:1
12:07:27 PM        52    0.00    0.02    0.00    0.02     4  kworker/4:1
12:07:27 PM        54    0.00    0.02    0.00    0.02     6  kworker/6:1
12:07:27 PM        55    0.00    0.02    0.00    0.02     7  kworker/7:1
12:07:27 PM        57    0.00    0.00    0.00    0.00     6  khungtaskd
12:07:27 PM        58    0.00    0.00    0.00    0.00     2  kswapd0
12:07:27 PM        59    0.00    0.00    0.00    0.00     7  kswapd1
12:07:27 PM        62    0.00    0.00    0.00    0.00     4  fsnotify_mark
12:07:27 PM        73    0.00    0.00    0.00    0.00     6  scsi_eh_0
12:07:27 PM        74    0.00    0.00    0.00    0.00     7  scsi_eh_1
12:07:27 PM        77    0.00    0.00    0.00    0.00     7  scsi_eh_3
12:07:27 PM       328    0.00    0.03    0.00    0.03     4  kworker/4:2
12:07:27 PM       350    0.00    0.00    0.00    0.00     0  kjournald
12:07:27 PM       437    0.00    0.00    0.00    0.00     0  upstart-udev-br
12:07:27 PM       443    0.00    0.00    0.00    0.00     5  udevd
12:07:27 PM       932    0.00    0.00    0.00    0.00     0  kjournald
12:07:27 PM       943    0.00    0.01    0.00    0.01     0  kjournald
12:07:27 PM       967    0.00    0.00    0.00    0.00     2  flush-252:0
12:07:27 PM       969    0.00    0.00    0.00    0.00     4  sshd
12:07:27 PM      1071    0.00    0.00    0.00    0.00     5  dbus-daemon
12:07:27 PM      1077    0.00    0.00    0.00    0.01     2  rsyslogd
12:07:27 PM      1166    0.00    0.00    0.00    0.00     5  cron
12:07:27 PM      1167    0.00    0.00    0.00    0.00     2  atd
12:07:27 PM      1171    0.01    0.02    0.00    0.02     5  irqbalance
12:07:27 PM      1182    0.00    0.01    0.00    0.01     7  nrpe
12:07:27 PM      1203    0.00    0.00    0.00    0.00     1  nginx
12:07:27 PM      2278    0.00    0.02    0.00    0.02     0  kworker/0:1
12:07:27 PM      7400    0.00    0.00    0.00    0.00     4  flush-252:1
12:07:27 PM      8384    0.00    0.00    0.00    0.00     6  sshd
12:07:27 PM      8398    0.00    0.00    0.00    0.00     5  sshd
12:07:27 PM      8542    0.00    0.00    0.00    0.00     1  bash
12:07:27 PM      8663    0.00    0.00    0.00    0.00     2  bash
12:07:27 PM      8812    0.00    0.00    0.00    0.00     1  sshd
12:07:27 PM      8826    0.00    0.00    0.00    0.00     4  sshd
12:07:27 PM      8827    0.00    0.00    0.00    0.00     7  bash
12:07:27 PM      8950    0.00    0.00    0.00    0.00     6  bash
12:07:27 PM      9788    0.00    0.00    0.00    0.00     5  sshd
12:07:27 PM      9802    0.00    0.00    0.00    0.00     5  sshd
12:07:27 PM     10786    0.00    0.00    0.00    0.00     6  bash
12:07:27 PM     12636    0.00    0.00    0.00    0.00     0  kworker/0:2
12:07:27 PM     15792    0.02    0.01    0.00    0.03     5  java
12:07:27 PM     15860    0.02    0.01    0.00    0.03     6  java
12:07:27 PM     15919    0.01    0.00    0.00    0.01     5  java
12:07:27 PM     16014    0.01    0.00    0.00    0.01     5  java
12:07:27 PM     16071    0.00    0.00    0.00    0.00     5  nginx
12:07:27 PM     16072    0.00    0.00    0.00    0.00     1  nginx
12:07:27 PM     16073    0.00    0.00    0.00    0.00     6  nginx
12:07:27 PM     16074    0.00    0.00    0.00    0.00     2  nginx
12:07:27 PM     16075    0.00    0.00    0.00    0.00     4  nginx
12:07:27 PM     16076    0.00    0.00    0.00    0.00     5  nginx
12:07:27 PM     16077    0.00    0.00    0.00    0.00     2  nginx
12:07:27 PM     16078    0.00    0.00    0.00    0.00     3  nginx
12:07:27 PM     16101    0.01    0.00    0.00    0.01     3  java
12:07:27 PM     16150    0.01    0.00    0.00    0.01     5  java
12:07:27 PM     16452    0.02    0.01    0.00    0.03     5  java
12:07:27 PM     18571    0.00    0.02    0.00    0.02     5  kworker/5:1
12:07:27 PM     26970    0.00    0.00    0.00    0.00     6  kworker/u:1
12:07:27 PM     29523    0.00    0.00    0.00    0.00     4  kworker/u:2
linux@joeyon:~$ pidstat  -d -t -p 15792
Linux 3.2.0-23-generic (joeyon)    09/08/2014      _x86_64_        (8 CPU)

12:08:24 PM      TGID       TID   kB_rd/s   kB_wr/s kB_ccwr/s  Command
12:08:24 PM     15792         -      0.00      0.09      0.00  java
12:08:24 PM         -     15792      0.00      0.00      0.00  |__java
12:08:24 PM         -     15793      0.00      0.00      0.00  |__java
12:08:24 PM         -     15794      0.00      0.00      0.00  |__java
12:08:24 PM         -     15795      0.00      0.00      0.00  |__java
12:08:24 PM         -     15796      0.00      0.00      0.00  |__java
12:08:24 PM         -     15797      0.00      0.00      0.00  |__java
12:08:24 PM         -     15798      0.00      0.00      0.00  |__java
12:08:24 PM         -     15799      0.00      0.00      0.00  |__java
12:08:24 PM         -     15800      0.00      0.00      0.00  |__java
12:08:24 PM         -     15801      0.00      0.00      0.00  |__java
12:08:24 PM         -     15802      0.00      0.00      0.00  |__java
12:08:24 PM         -     15803      0.00      0.00      0.00  |__java
12:08:24 PM         -     15804      0.00      0.00      0.00  |__java
12:08:24 PM         -     15805      0.00      0.00      0.00  |__java
12:08:24 PM         -     15806      0.00      0.00      0.00  |__java
12:08:24 PM         -     15807      0.00      0.00      0.00  |__java
12:08:24 PM         -     15808      0.00      0.00      0.00  |__java
12:08:24 PM         -     15809      0.00      0.00      0.00  |__java
12:08:24 PM         -     15810      0.00      0.00      0.00  |__java
12:08:24 PM         -     15811      0.00      0.00      0.00  |__java
12:08:24 PM         -     15812      0.00      0.01      0.00  |__java
12:08:24 PM         -     15830      0.00      0.00      0.00  |__java
12:08:24 PM         -     15843      0.00      0.00      0.00  |__java
12:08:24 PM         -     15844      0.00      0.00      0.00  |__java
12:08:24 PM         -     15845      0.00      0.00      0.00  |__java
12:08:24 PM         -     15846      0.00      0.00      0.00  |__java
12:08:24 PM         -     15847      0.00      0.00      0.00  |__java
12:08:24 PM         -     15848      0.00      0.00      0.00  |__java
12:08:24 PM         -     15881      0.00      0.08      0.00  |__java
12:08:24 PM         -     15882      0.00      0.00      0.00  |__java
12:08:24 PM         -     15883      0.00      0.00      0.00  |__java
12:08:24 PM         -     15884      0.00      0.00      0.00  |__java
12:08:24 PM         -     15885      0.00      0.00      0.00  |__java
12:08:24 PM         -     15886      0.00      0.00      0.00  |__java
12:08:24 PM         -     15887      0.00      0.00      0.00  |__java
12:08:24 PM         -     15888      0.00      0.00      0.00  |__java
12:08:24 PM         -     15889      0.00      0.00      0.00  |__java
12:08:24 PM         -     15890      0.00      0.00      0.00  |__java
12:08:24 PM         -     15891      0.00      0.00      0.00  |__java
12:08:24 PM         -     15892      0.00      0.00      0.00  |__java
12:08:24 PM         -     15893      0.00      0.00      0.00  |__java
12:08:24 PM         -     15894      0.00      0.00      0.00  |__java
12:08:24 PM         -     15895      0.00      0.00      0.00  |__java
12:08:24 PM         -     28454      0.00      0.00      0.00  |__java

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值