mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kirill Tkhai <ktkhai@virtuozzo.com>
To: mingo@redhat.com, peterz@infradead.org,
	linux-kernel@vger.kernel.org, ktkhai@virtuozzo.com
Subject: [PATCH 0/4] Show cpu cgroup's nr_running and nr_iowait in cpu.stat file
Date: Mon, 06 Nov 2017 17:40:15 +0300	[thread overview]
Message-ID: <150997831079.4082.2128628793286090861.stgit@localhost.localdomain> (raw)

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>

             reply	other threads:[~2017-11-06 14:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-06 14:40 Kirill Tkhai [this message]
2017-11-06 14:40 ` [PATCH 1/4] sched: Move manipulations with nr_iowait counter to separate functions Kirill Tkhai
2017-11-06 14:40 ` [PATCH 2/4] sched: Account per task_group nr_iowait Kirill Tkhai
2017-11-06 16:06   ` Peter Zijlstra
2017-11-06 16:12     ` Kirill Tkhai
2017-11-06 16:24       ` Peter Zijlstra
2017-11-06 16:25         ` Peter Zijlstra
2017-11-06 14:40 ` [PATCH 3/4] sched: Export per task_cgroup nr_iowait to userspace Kirill Tkhai
2017-11-06 14:40 ` [PATCH 4/4] sched: Export per task_cgroup nr_running " Kirill Tkhai
2017-11-06 16:04 ` [PATCH 0/4] Show cpu cgroup's nr_running and nr_iowait in cpu.stat file Peter Zijlstra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=150997831079.4082.2128628793286090861.stgit@localhost.localdomain \
    --to=ktkhai@virtuozzo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®