|| ||Glauber Costa <glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> |
|| ||<cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org> |
|| ||[PATCH 0/5] per-cpu/cpuacct cgroup scheduler statistics |
|| ||Thu, 2 Feb 2012 18:19:27 +0400|
|| ||Peter Zijlstra <a.p.zijlstra-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org>,
Paul Turner <pjt-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>, <kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>,
Balbir Singh <bsingharora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>, Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
<devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>, "Eric W. Biederman" <ebiederm-aS9lmoZGLiVWk0Htik3Jfirstname.lastname@example.org>,
Serge Hallyn <serge.hallyn-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>|
|| ||Article, Thread
Here is my new attempt to get a per-container version of some
/proc data such as /proc/stat and /proc/uptime.
In this series I solved the visibility problem, which is,
the problem of how and when to show /proc/stat data per-cgroup,
by declaring it not a problem.
This can probably be done in userspace with other aids, like mounting
a fuse overlay that simulates /proc from outside a container, to a
Here, we should have most of the data needed to do that. They are drawn
from both the cpu cgroup, and cpuacct. Each cgroup exports the data it
knows better, and I am not really worried here about bindings between them.
In this first version, I am using clock_t units, being quite proc-centric.
It made my testing easier, but I am happy to show any units you guys would
Besides that, it still has some other minor issues to be sorted out.
But I verified the general direction to be working, and would like to know
what you think.
Glauber Costa (5):
make steal time's to-tick routine generic
store number of iowait events in a task_group
account guest time per-cgroup as well.
expose fine-grained per-cpu data for cpuacct stats
expose per-taskgroup schedstats in cgroup
include/linux/sched.h | 1 +
kernel/sched/core.c | 207 +++++++++++++++++++++++++++++++++++++++++++++----
kernel/sched/fair.c | 45 +++++++++++
kernel/sched/sched.h | 3 +
4 files changed, 242 insertions(+), 14 deletions(-)