Welcome to WebmasterWorld Guest from 23.22.182.29

Forum Moderators: bakedjake

Message Too Old, No Replies

Disk I/O Monitoring for Cent 5.6

Disk I/O Monitoring for Cent 5.6

     
5:10 am on Aug 17, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 21, 2008
posts: 42
votes: 0


For the past month my Cent 5.6 server has suffered random I/O spikes that last from several minutes to many hours. I'm struggling to find the ideal tool to help track down the culprit, and hope the users here can offer some suggestions.

I've got Webmin installed which tells me basic I/O usage in %, but stops short of pointing out process I/O usage. I've also installed Cacti, but it doesn't appear I can run down the problem with it either. Using the vmstat command (vmstat 1 10) tells me almost nothing useful.

Please offer some guidance.
6:41 am on Aug 17, 2011 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


perhaps iostat will provide the information you need.
2:34 pm on Aug 17, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 21, 2008
posts: 42
votes: 0


Thank you, but iostat (iostat -d -k -x) only shows me read/write activity on the disk. What I need is to see that information at a process level.
2:38 pm on Aug 17, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 21, 2008
posts: 42
votes: 0


sar -b produces roughly the same results, so it won't work either.
2:40 pm on Aug 17, 2011 (gmt 0)

Administrator

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 8, 2003
posts:3783
votes: 2


block_dump is what you're looking for.

Be careful; only use it sparingly for short amounts of time as it generates massive (additional) disk activity.

Enable it with sysctl, then use /var/log/debug to find the culprit. Remember to disable it when you're done!
2:52 pm on Aug 17, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 21, 2008
posts: 42
votes: 0


This one looks like a winner, thank you!