Can blktrace only trace one specific process?

1.1k views Asked by At

Can blktrace only trace one specific process? Right now blktrace dump out all io activity out, which takes a lot of time using blkparse to parse it. But we are only interested in one particular process. Is there any way to configure blktrace to track only that process?

Thanks, Jeff

2

There are 2 answers

3
johnshen64 On

No, blktrace works on a device as it is an i/o performance tool, not a process. I guess you would have to configure a process to use a particular block device but no other processes, if that is possible for you, to do something like that.

0
smoors On

Use the "-o" option of blkparse to avoid the output of data to stdout. This reduces the time that is needed for blkparse. I'm able to parse 72MB in 30 seconds.