lkml.org 
[lkml]   [2017]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Subject[PATCH 0/4] Show cpu cgroup's nr_running and nr_iowait in cpu.stat file
    From
    Date
    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@virtuozzo.com>

    \
     
     \ /
      Last update: 2017-11-06 15:43    [W:3.466 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site