On Fri, Oct 28, 2005 at 05:16:54PM +0930, Iain Buchanan wrote: > > > is there a top-like utility that can tell me what processes are doing > > > the most disk reads/writes? > > > > run 'vmstat 1' > > that doesn't seem to tell me what processes are running, only what the > system totals are. I wanted to see a top like output, eg > process1 xMb/s > process2 yMb/s > etc
I dont think you can get that out-of-the-box. I have not played with accounting stuff (sar etc) so that might be able to do something like this for you but AFAIK then vanilla kernel wont try to track this. The reason is that short-lived processes might die before their disk request gets to the block layer, making accounting impossible. A bit more farfetched you might picture PID wrap and get disk access accounted to the wrong process. I am not an expert on this so I am happily corrected. For disk IO I find iostat to be better than vmstat. Its part of the sysstat package. Cheers, Rasmus -- gentoo-user@gentoo.org mailing list