I understand that each mounted ext3
filesystem will have a corresponding kjournald
process running. One of those processes is using lots of CPU, and I'd like to know which filesystem is responsible.
I have three ext3
filesystems mounted, but the processes appear only as
root 325 2 0 Sep23 ? 00:30:12 [kjournald]
root 7433 2 0 Sep23 ? 00:00:00 [kjournald]
root 7434 2 0 Sep23 ? 00:09:47 [kjournald]
How can I determine which process is associated with which filesystem?
An indirect way to do this is to use
blktrace
and its convenience commandbtrace
.blktrace
records and displays block-level access to disks as it happens.btrace
means you don't have to remember all the options toblktrace
.The fields displayed here are documented in the
blkparse
manpage; the fifth field is the PID of the process doing the I/O. So although I don't have a way of directly relatingkjournald
s to filesystems, I can see which process is associated with a specific block device and then look at the mount table to see which filesystem is implicated.