OpenVZ Forum



Members   Search      Help    Register    Login    Home
Home » Mailing lists » Devel » [PATCH v2 0/5] per-cgroup /proc/stat statistics
[PATCH v2 0/5] per-cgroup /proc/stat statistics [message #45858] Mon, 09 April 2012 18:13
Glauber Costa is currently offline Glauber Costa
Messages: 916
Registered: October 2011
Senior Member
From: *parallels.com
Hi,

This patch aims at allowing userspace to recreate the most important
contents of /proc/stat per-cgroup. It exports the data needed for it
from the guts of the scheduler, and then anyone can parse it and
present it to a container in a meaningful way. Again, the kernel won't
get involved in this directly.

Part of it will come from the cpu cgroup. Another part, from the cpuacct
cgroup. Data is exported in cgroup files stat_percpu. They are just like
the normal stat files, but with a cpuXXX value before the actual data
field. As so, they are also extensible. So if anyone wants to give a
shot at values I am currently ignoring (as iowait) in the future, we
at least won't have a format problem.

Let me know what you think.

Glauber Costa (5):
measure exec_clock for rt sched entities
account guest time per-cgroup as well.
record nr_switches per task_group
expose fine-grained per-cpu data for cpuacct stats
expose per-taskgroup schedstats in cgroup

kernel/sched/core.c | 214 ++++++++++++++++++++++++++++++++++++++++++++++++--
kernel/sched/fair.c | 27 ++++++-
kernel/sched/rt.c | 5 +
kernel/sched/sched.h | 6 ++
4 files changed, 245 insertions(+), 7 deletions(-)

--
1.7.7.6
Previous Topic:[RFC 0/7] Initial proposal for faster res_counter updates
Next Topic:[PATCH 0/4] nfsd: containerize id-to-name and name-to-id caches
Goto Forum:
  


Current Time: Sat May 25 02:19:23 EDT 2013
Powered by FUDforum Powered by Parallels Virtuozzo Containers