[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <150997831079.4082.2128628793286090861.stgit@localhost.localdomain>
Date: Mon, 06 Nov 2017 17:40:15 +0300
From: Kirill Tkhai <ktkhai@...tuozzo.com>
To: mingo@...hat.com, peterz@...radead.org,
linux-kernel@...r.kernel.org, ktkhai@...tuozzo.com
Subject: [PATCH 0/4] Show cpu cgroup's nr_running and nr_iowait in cpu.stat
file
The patchset exports numbers of cpu cgroup's running tasks and tasks in iowait
to userspace. This may be useful to get statistics of a separate container and
to analyse its load.
Number of running tasks is accounted as a sum of corresponding cfs and rt tasks
of the task cgroup. Number of iowait task is accounted similar to global nr_iowait
(it's incremented on dequeue in __schedule() and dectemented on try_to_wakeup)
with the only exception we handle changing of cgroup in sched_change_group().
---
Kirill Tkhai (4):
sched: Move manipulations with nr_iowait counter to separate functions
sched: Account per task_group nr_iowait
sched: Export per task_cgroup nr_iowait to userspace
sched: Export per task_cgroup nr_running to userspace
kernel/sched/core.c | 107 ++++++++++++++++++++++++++++++++++++++++----------
kernel/sched/sched.h | 5 ++
2 files changed, 90 insertions(+), 22 deletions(-)
--
Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.com>
Powered by blists - more mailing lists