Article 58DFG Differentiate "fake" and real I/O

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?

Thankslatest?d=yIl2AUoC8zA latest?i=TU1X6IhzHE0:HCtEBZ9tMKM:F7zBnMy latest?i=TU1X6IhzHE0:HCtEBZ9tMKM:V_sGLiP latest?d=qj6IDK7rITs latest?i=TU1X6IhzHE0:HCtEBZ9tMKM:gIN9vFwTU1X6IhzHE0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments