[Devel] [PATCH RHEL7 COMMIT] sched: debug: show nr_failed_migrations_cpulimit

Konstantin Khorenko khorenko at virtuozzo.com
Wed Aug 10 07:44:00 PDT 2016


The commit is pushed to "branch-rh7-3.10.0-327.22.2.vz7.16.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.22.2.vz7.16.4
------>
commit 75631c9683bf49c88499bdb3be285c41fa8fcc07
Author: Vladimir Davydov <vdavydov at virtuozzo.com>
Date:   Wed Aug 10 18:44:00 2016 +0400

    sched: debug: show nr_failed_migrations_cpulimit
    
    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 55ac5fb..6cf0c2c 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);


More information about the Devel mailing list