Re: counters

Frank Schaefer (frank.schafer@setuza.cz)
17 May 2002 12:47:53 +0200


On Fri, 2002-05-17 at 11:08, Manik Raina wrote:
>
> Thanks for your response. What i meant was
> every process could have an account of how
> many bytes were read/written to various
> filesystems/sockets using read()/write()
> system calls.
>
> We could dump this stuff in /proc and
> it could tell us which processes are
> heavily IO bound.
>
> I am wondering if this information will
> be useful to anyone.

Hi Manik

and sorry that I read only half of your initial post.
I had a quick look at fs/read_write.c.

I don't see any hook in the functions here, to perform such a task. And
here this should belong to -- shouldn't it?

the functions could add ``count'' to the procfs entry of ``current''.
(just a thought) This info could be valuable - I think - if it wouldn't
make a large performance issue.

Regards
Frank

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