Skip to content

Instantly share code, notes, and snippets.

@robhaswell
Created August 23, 2012 08:08
Show Gist options
  • Save robhaswell/3434109 to your computer and use it in GitHub Desktop.
Save robhaswell/3434109 to your computer and use it in GitHub Desktop.
[15:18:55] Angelo RC: there are a command for showing what process uses most disk write?
[15:19:17] Rob Haswell: not that I know of, I'm afraid
[15:19:56] Rob Haswell: you can use "iostat" to see the current disk IO utilisation
[15:20:01] Angelo RC: yes
[15:20:06] Angelo RC: because i have two server
[15:20:09] Angelo RC: in one
[15:20:14] Angelo RC: root@rcs7 [~]# iostat -m
Linux 2.6.32-279.5.1.el6.x86_64 (rcs7.xdom.it) 22/08/2012 _x86_64_ (8 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
7,43 0,15 1,03 12,04 0,00 79,34
Device: tps MB_read/s MB_wrtn/s MB_read MB_wrtn
sdb 94,78 0,01 3,49 932 218377
sda 113,94 3,28 0,49 205175 30335
md1 0,01 0,00 0,00 1 0
md2 149,86 0,29 0,49 17950 30331
[15:20:27] Angelo RC: and in other one
[15:20:28] Angelo RC: root@rcs8 [~]# iostat -m
Linux 2.6.32-220.23.1.el6.x86_64 (rcs8.xdom.it) 22/08/2012 _x86_64_ (8 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
7,76 0,08 1,44 7,18 0,00 83,54
Device: tps MB_read/s MB_wrtn/s MB_read MB_wrtn
sdb 88,28 3,29 0,37 13640439 1545249
sda 85,67 3,27 0,37 13563807 1545316
md3 74,78 0,14 0,25 564461 1019926
md2 32,17 0,01 0,12 43529 501534
md1 0,00 0,00 0,00 1 0
[15:20:36] Angelo RC: if you see MB_wrtn/s
[15:20:45] Angelo RC: i have 3,49 in one and 0,37 in other oneù
[15:21:02] Angelo RC: but the server with 0,37 is with 100 account in plus
[15:21:09] Angelo RC: this is very strange
[15:22:37] Rob Haswell: it is strange
[15:22:47] Rob Haswell: I don't know how to go about determining that
[15:23:07] Rob Haswell: ordinarilly I would use dtrace but I would need to recompile your server's kernel with the dtrace module
[15:23:33] Rob Haswell: it's not something I can do without planning and co-ordination
[15:25:53] Angelo RC: thank you rob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment