Re: counters

Frank Schaefer
2002-05-17T10:47:54Z

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