Re: [PATCH, take3] getrusage() : Fill ru_inblock and ru_oublock fields if possible

2007-03-19 Thread Andrew Morton
On Mon, 19 Mar 2007 17:37:23 +0300 Oleg Nesterov <[EMAIL PROTECTED]> wrote: > On 03/19, Eric Dumazet wrote: > > > > [...snip...] > > do { > > utime = cputime_add(utime, t->utime); > > @@ -2040,6 +2045,8 @@ static void k_getrusage(struct task_stru >

Re: [PATCH, take3] getrusage() : Fill ru_inblock and ru_oublock fields if possible

2007-03-19 Thread Eric Dumazet
On Mon, 19 Mar 2007 17:37:23 +0300 Oleg Nesterov <[EMAIL PROTECTED]> wrote: > (offtopic) Well..., it *is* ontopic I'm afraid... > > We are reading u64 read_bytes/write_bytes which could be updated > asynchronously. > /proc/pid/io does the same. > > Of course, I don't blame this patch, just a

Re: [PATCH, take3] getrusage() : Fill ru_inblock and ru_oublock fields if possible

2007-03-19 Thread Oleg Nesterov
On 03/19, Eric Dumazet wrote: > > [...snip...] > do { > utime = cputime_add(utime, t->utime); > @@ -2040,6 +2045,8 @@ static void k_getrusage(struct task_stru > r->ru_nivcsw += t->nivcsw; >

[PATCH, take3] getrusage() : Fill ru_inblock and ru_oublock fields if possible

2007-03-19 Thread Eric Dumazet
to accumulate inblock/oublock of terminated and waited-for children, and terminated threads. Thank you [PATCH, take3] getrusage() : Fill ru_inblock and ru_oublock fields if possible If CONFIG_TASK_IO_ACCOUNTING is defined, we update io accounting counters for each task. This patch permits reporting

[PATCH, take3] getrusage() : Fill ru_inblock and ru_oublock fields if possible

2007-03-19 Thread Eric Dumazet
to accumulate inblock/oublock of terminated and waited-for children, and terminated threads. Thank you [PATCH, take3] getrusage() : Fill ru_inblock and ru_oublock fields if possible If CONFIG_TASK_IO_ACCOUNTING is defined, we update io accounting counters for each task. This patch permits reporting

Re: [PATCH, take3] getrusage() : Fill ru_inblock and ru_oublock fields if possible

2007-03-19 Thread Oleg Nesterov
On 03/19, Eric Dumazet wrote: [...snip...] do { utime = cputime_add(utime, t-utime); @@ -2040,6 +2045,8 @@ static void k_getrusage(struct task_stru r-ru_nivcsw += t-nivcsw;

Re: [PATCH, take3] getrusage() : Fill ru_inblock and ru_oublock fields if possible

2007-03-19 Thread Eric Dumazet
On Mon, 19 Mar 2007 17:37:23 +0300 Oleg Nesterov [EMAIL PROTECTED] wrote: (offtopic) Well..., it *is* ontopic I'm afraid... We are reading u64 read_bytes/write_bytes which could be updated asynchronously. /proc/pid/io does the same. Of course, I don't blame this patch, just a stupid

Re: [PATCH, take3] getrusage() : Fill ru_inblock and ru_oublock fields if possible

2007-03-19 Thread Andrew Morton
On Mon, 19 Mar 2007 17:37:23 +0300 Oleg Nesterov [EMAIL PROTECTED] wrote: On 03/19, Eric Dumazet wrote: [...snip...] do { utime = cputime_add(utime, t-utime); @@ -2040,6 +2045,8 @@ static void k_getrusage(struct task_stru