How do I tell how much load a particular process is contributing to each of several available volumes/mounts? It seems that dstat
only shows aggregate stats across all processes per disk, and iotop
only shows aggregates stats across all disks per process.
-
It's kinda bad to ask the same question twice. You might have edited the title of the original note.– mdpcApr 11, 2013 at 5:32
-
@mdpc I specifically was asking two distinct questions. I can try to make them more clearly distinguished? To other readers, this is what is being referring to: unix.stackexchange.com/questions/72027/….– YangApr 11, 2013 at 7:39
-
The Linux kernel does not track this information. Solaris on the other hand does, and this information is available via dtrace– JohanApr 11, 2013 at 13:12
2 Answers
I don't know if this is still relevant, but I use iostat to show I/O statistics for individual devices and partitions. For example, in order to monitor a running cpio task with process id 32731 is use the following command:
iostat -xd /proc/32731 -p sda,sdb,sdc,sdd 1
You can use htop. It is a better process monitoring tool that top.