[Devel] [PATCH rh7] sched: debug: show nr_failed_migrations_cpulimit

Vladimir Davydov vdavydov at virtuozzo.com
Wed Aug 3 05:58:56 PDT 2016


This is our (non-mainstream) counter counting how many times task
migration failed due to cpulimit restriction. For some reason, we don't
show it in proc although it might be helpful for debugging. Let's fix
that.

Signed-off-by: Vladimir Davydov <vdavydov at virtuozzo.com>
---
 kernel/sched/debug.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 55ac5fb78e29..6cf0c2ceedfe 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -594,6 +594,7 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
 	P(se.statistics.nr_migrations_cold);
 	P(se.statistics.nr_failed_migrations_affine);
 	P(se.statistics.nr_failed_migrations_running);
+	P(se.statistics.nr_failed_migrations_cpulimit);
 	P(se.statistics.nr_failed_migrations_hot);
 	P(se.statistics.nr_forced_migrations);
 	P(se.statistics.nr_wakeups);
-- 
2.1.4



More information about the Devel mailing list