[clue-tech] Tracking disk i/o by process?

Dan Poler dpoler at redhat.com
Tue Dec 4 09:01:12 MST 2007


On Mon, 2007-12-03 at 17:01 -0700, Dan Harris wrote:
> I'm troubleshooting a server that is suffering from some annoying i/o  
> write storms and trying to track down which processes are to blame.
> 
> Does anyone know of a way to track the number of read/writes and  
> summarize them by pid?  dstat shows when it's happening, but doesn't  
> show us *which* processes are responsible. which is not very helpful.

SystemTap is your friend. http://sourceware.org/systemtap/ -- it's a
somewhat C-like scripting language that lets you hook into the kernel
and say be notified on each disk write, or print the top ten processes
from the perspective of I/O activity. It's extremely powerful, but
you'll have write a script to gather the data that you want to see;
fortunately lots of examples are provided (at least with the RHEL/Fedora
version), and the above site has a wiki with lots of other examples.

dap

> -Dan
> _______________________________________________
> clue-tech mailing list
> clue-tech at cluedenver.org
> http://www.cluedenver.org/mailman/listinfo/clue-tech
-- 
Dan Poler, RHCE
Senior Consultant
Red Hat, Inc.
E-Mail: dpoler at redhat.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://cluedenver.org/pipermail/clue-tech/attachments/20071204/03a4a093/attachment-0002.bin


More information about the clue-tech mailing list