public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: taskstats root only breaking iotop
@ 2011-10-01 21:54 Guillaume Chazarain
  2011-10-01 21:59 ` Linus Torvalds
  0 siblings, 1 reply; 10+ messages in thread
From: Guillaume Chazarain @ 2011-10-01 21:54 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Kernel Mailing List, Balbir Singh, Vasiliy Kulikov

On Thu, Sep 22, 2011 at 2:32 AM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>      Make TASKSTATS require root access
>      Make taskstats round statistics down to nearest 1k bytes/events

Hello, iotop author here.

With taskstats being root only, what's the benefit of making the stats
imprecise (not that it matters to iotop)?

How about this plan instead:
- byte level stats only if ptrace_may_access() though iotop can
certainly live with 1k rounded values
- rounded stats or just nothing otherwise
- potentially an extra field in the taskstats structure indicating
when the information is degraded

Thanks

-- 
Guillaume

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-10-04 13:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-01 21:54 taskstats root only breaking iotop Guillaume Chazarain
2011-10-01 21:59 ` Linus Torvalds
2011-10-01 22:41   ` Guillaume Chazarain
2011-10-02  0:20     ` Linus Torvalds
2011-10-02 10:22       ` Guillaume Chazarain
2011-10-02 10:54         ` Vasiliy Kulikov
2011-10-03 12:31           ` Adrian Bunk
2011-10-04 13:31             ` Vasiliy Kulikov
2011-10-03 14:52   ` Balbir Singh
2011-10-03 15:20     ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox