Re: taskstats root only breaking iotop
From: Linus Torvalds
Date: Sat Oct 01 2011 - 20:21:32 EST
On Sat, Oct 1, 2011 at 3:41 PM, Guillaume Chazarain <guichaz@xxxxxxxxx> wrote:
> On Sat, Oct 1, 2011 at 11:59 PM, Linus Torvalds
> <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>> I think the question should be: why is it *ever* a good idea to let
>> *anybody* read how many bytes anybody has read.
> I use iotop to get the throughput of a cp or tar because I don't
> always think of piping to 'pv'. People also use it as a progress
> indicator for their less verbose applications (total bytes
> read/written instead of rate).
I can understand the use of "throughput".
I don't understand why you then even *mention* byte-granularity. NOBODY CARES.
It really is that simple. Either you care about a single process (and
you damn well use strace or something similar), or you care about
For the statistics, something *like* TASKSTATS can make sense, but
never *ever* does it make sense to give byte-granularity stats in that
So I don't see why you ask for it. What could possibly be a valid use-case?
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/