[Devel] [PATCH rh7 0/2] fairsched stats
Vladimir Davydov
vdavydov at parallels.com
Mon May 25 02:48:31 PDT 2015
Currently, cpu stats are broken for UUID-named CTs. First, reading
/proc/stat from inside a container or /proc/vz/vestat on the host fails
with ENOENT if there is a UUID-named CT. Patch 1 fixes that. Second,
there is no new interface for getting loadavg for UUID-named CTs, which
would be a successor of the legacy VZCTL_GET_CPU_STAT ioctl. Patch 2
adds cpu.proc.loadavg that mimics behavior of /proc/loadavg.
Related to https://jira.sw.ru/browse/PSBM-32284
Vladimir Davydov (2):
farisched: switch methods showing stats from numeric id to name
fairsched: add cpu.proc.loadavg to the cpu cgroup
fs/proc/loadavg.c | 22 +++++++++----------
fs/proc/stat.c | 2 +-
include/linux/fairsched.h | 17 +++++++++------
include/linux/sched.h | 7 ------
kernel/fairsched.c | 39 +++++++++++++++++++++++-----------
kernel/sched/core.c | 54 +++++++++++++++++++++++++++++------------------
kernel/ve/vecalls.c | 25 ++++++++--------------
7 files changed, 93 insertions(+), 73 deletions(-)
--
2.1.4
More information about the Devel
mailing list