Re: [RFC][PATCH 00/10] taskstats: Enhancements for precise accounting

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Thursday, September 23, 2010 - 1:11 pm

On Thu, 23 Sep 2010 15:48:01 +0200
Michael Holzheu <holzheu@linux.vnet.ibm.com> wrote:


This is a big change!  If this is done right then we're heading in the
direction of deprecating the longstanding way in which userspace
observes the state of Linux processes and we're recommending that the
whole world migrate to taskstats.  I think?

If so, much chin-scratching will be needed, coordination with
util-linux people, etc.

We'd need to think about the implications of taskstats versioning.  It
_is_ a versioned interface, so people can't just go and toss random new
stuff in there at will - it's not like adding a new procfs file, or
adding a new line to an existing one.  I don't know if that's likely to
be a significant problem.

I worry that there's a dependency on CONFIG_NET?  If so then that's a
big problem because in N years time, 99% of the world will be using
taskstats, but a few embedded losers will be stuck using (and having to
support) the old tools.



How many CPUs does that system have?

What's the `top' update period?  One second?

So we're saying that a `top -d 1' consumes 2.4% of this
mystery-number-of-CPUs machine?  That's quite a lot.


So this is a binary interface which uses an ioctl.  People don't like
ioctls.  Could we have triggered it with a write() instead?

Does this have the potential to save us from the CONFIG_NET=n problem?


These didn't update the taskstats version number.  Should they have?


ooh, excellent.  A standardised userspace access library.


Talk to me about namespaces, please.  A lot of the new code involves
PIDs, but PIDs are not system-wide unique.  A PID is relative to a PID
namespace.  Does everything Just Work?  When userspace sends a PID to
the kernel, that PID is assumed to be within the sending process's PID
namespace?  If so, then please spell it all out in the changelogs.  If
not then that is a problem!

If I can only observe processes in my PID namespace then is that a
problem?  Should I be allowed to observe another PID namespace's
processes?  I assume so, because I might be root.  If so, how is that
to be done?

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH 02/10] taskstats: Separate taskstats commands, Michael Holzheu, (Thu Sep 23, 7:01 am)
[RFC][PATCH 03/10] taskstats: Split fill_pid function, Michael Holzheu, (Thu Sep 23, 7:01 am)
[RFC][PATCH 09/10] taskstats: Fix exit CPU time accounting, Michael Holzheu, (Thu Sep 23, 7:02 am)
[RFC][PATCH 10/10] taststats: User space with ptop tool, Michael Holzheu, (Thu Sep 23, 7:04 am)
Re: [RFC][PATCH 03/10] taskstats: Split fill_pid function, Oleg Nesterov, (Thu Sep 23, 10:33 am)
Re: [RFC][PATCH 00/10] taskstats: Enhancements for precise ..., Andrew Morton, (Thu Sep 23, 1:11 pm)
Re: [RFC][PATCH 09/10] taskstats: Fix exit CPU time accounting, Martin Schwidefsky, (Mon Sep 27, 6:42 am)
Re: [RFC][PATCH 09/10] taskstats: Fix exit CPU time accounting, Martin Schwidefsky, (Tue Sep 28, 12:09 am)
Re: [RFC][PATCH 09/10] taskstats: Fix exit CPU time accounting, Martin Schwidefsky, (Tue Sep 28, 2:08 am)
Re: [RFC][PATCH 09/10] taskstats: Fix exit CPU time accounting, Martin Schwidefsky, (Tue Sep 28, 3:36 am)