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 <[email protected]>
---
 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

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to