* [PATCH] sched/debug: Add load-tracking statistics to task
@ 2013-06-25 8:03 Kamalesh Babulal
2013-06-27 9:03 ` [tip:sched/core] " tip-bot for Kamalesh Babulal
0 siblings, 1 reply; 2+ messages in thread
From: Kamalesh Babulal @ 2013-06-25 8:03 UTC (permalink / raw)
To: linux-kernel; +Cc: peterz, pjt, mingo, kamalesh
At present we print per-entity load-tracking statistics for
cfs_rq of cgroups/runqueues. Given that per task statistics
is maintained, it can be used to know the contribution made
by the task to its parenting cfs_rq level.
This patch adds per-task load-tracking statistics to
/proc/<PID>/sched.
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
---
kernel/sched/debug.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index d1c0c81..375225b 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -567,6 +567,12 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
"nr_involuntary_switches", (long long)p->nivcsw);
P(se.load.weight);
+#if defined(CONFIG_SMP) && defined(CONFIG_FAIR_GROUP_SCHED)
+ P(se.avg.runnable_avg_sum);
+ P(se.avg.runnable_avg_period);
+ P(se.avg.load_avg_contrib);
+ P(se.avg.decay_count);
+#endif
P(policy);
P(prio);
#undef PN
--
1.7.11.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:sched/core] sched/debug: Add load-tracking statistics to task
2013-06-25 8:03 [PATCH] sched/debug: Add load-tracking statistics to task Kamalesh Babulal
@ 2013-06-27 9:03 ` tip-bot for Kamalesh Babulal
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Kamalesh Babulal @ 2013-06-27 9:03 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, kamalesh, peterz, tglx
Commit-ID: 939fd731eb88a0cdd9058d0b0143563172a217d7
Gitweb: http://git.kernel.org/tip/939fd731eb88a0cdd9058d0b0143563172a217d7
Author: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
AuthorDate: Tue, 25 Jun 2013 13:33:36 +0530
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Thu, 27 Jun 2013 10:07:46 +0200
sched/debug: Add load-tracking statistics to task
At present we print per-entity load-tracking statistics for
cfs_rq of cgroups/runqueues. Given that per task statistics
is maintained, it can be used to know the contribution made
by the task to its parenting cfs_rq level.
This patch adds per-task load-tracking statistics to /proc/<PID>/sched.
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20130625080336.GA20175@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
kernel/sched/debug.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index d803989..62632098 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -566,6 +566,12 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
"nr_involuntary_switches", (long long)p->nivcsw);
P(se.load.weight);
+#if defined(CONFIG_SMP) && defined(CONFIG_FAIR_GROUP_SCHED)
+ P(se.avg.runnable_avg_sum);
+ P(se.avg.runnable_avg_period);
+ P(se.avg.load_avg_contrib);
+ P(se.avg.decay_count);
+#endif
P(policy);
P(prio);
#undef PN
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-27 9:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25 8:03 [PATCH] sched/debug: Add load-tracking statistics to task Kamalesh Babulal
2013-06-27 9:03 ` [tip:sched/core] " tip-bot for Kamalesh Babulal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.