Is there anyway to tell with top or iostat which process is hogging all the disk I/O? Matt
Matt wrote:> Is there anyway to tell with top or iostat which process is hogging > all the disk I/O? >iostat won't drill down to per process statistics `top` or `ps` shows any processes in heavy iowait... or, maybe lsof could give you some clues (as it lists all open files)
Matt wrote:> Is there anyway to tell with top or iostat which process is hogging > all the disk I/O?If it is hogging "all" of the disk I/O the "state" of the process when shown in top will frequently be "D" (others will usually be "S" or maybe "R") Same goes for viewing the process using ps. nate
Matt wrote:> Is there anyway to tell with top or iostat which process is hogging > all the disk I/O?No, you need systemtap for this. <http://sourceware.org/systemtap/wiki/ScriptsTools> has examples. Remember, you'd also need the corresponding kernel-debuginfo package for your running kernel which you can get from <http://debuginfo.centos.org/>. Cheers, Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20090113/9b821fe5/attachment-0003.sig>