All of lore.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; 13+ 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] 13+ messages in thread

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

Thread overview: 13+ 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         ` [kernel-hardening] " Vasiliy Kulikov
2011-10-02 10:54           ` Vasiliy Kulikov
2011-10-03 12:31           ` [kernel-hardening] " Adrian Bunk
2011-10-03 12:31             ` Adrian Bunk
2011-10-04 13:31             ` [kernel-hardening] " Vasiliy Kulikov
2011-10-04 13:31               ` Vasiliy Kulikov
2011-10-03 14:52   ` Balbir Singh
2011-10-03 15:20     ` Linus Torvalds

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.