Differentiate "fake" and real I/O
by Shidosh from LinuxQuestions.org on (#58DFG)
Hi,
I am facing an interesting problem that I can't solve.
When a process writes data, the amount of data read/written by this process is reported in /proc/<pid>/io.
But I noticed that writing on a broken pipe (that I called "fake" io, was created because I didn't want logs and with /prod/.../fd showing the broken pipe), also increase the values in /proc/<pid>/io.
Does somebody know if there is a way to differentiate real writing of a process on the disk vs writing of a broken pipe?
Thanks


I am facing an interesting problem that I can't solve.
When a process writes data, the amount of data read/written by this process is reported in /proc/<pid>/io.
But I noticed that writing on a broken pipe (that I called "fake" io, was created because I didn't want logs and with /prod/.../fd showing the broken pipe), also increase the values in /proc/<pid>/io.
Does somebody know if there is a way to differentiate real writing of a process on the disk vs writing of a broken pipe?
Thanks