Re: [Patch for review] BSD accounting IO stats

From: Rik van Riel
Date: Mon Aug 02 2004 - 14:13:10 EST


On Mon, 2 Aug 2004, Andi Kleen wrote:

> This doesn't look very useful, because most writes which
> are flushed delayed would get accounted to pdflushd.

> If you really wanted to do this i guess you would need to
> track the pid of the process and account it there.

It may be easier to do this at write(2) time, making the
assumption that most IO done there will eventually hit
the filesystem.

Not sure what to do at read time, the current code may
well be good enough.

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/