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

Submitted by Konstantin Khorenko on Aug. 10, 2016, 2:44 p.m.

Details

Message ID 201608101444.u7AEi0PS026200@finist_cl7.x64_64.work.ct
State New
Series "sched: debug: show nr_failed_migrations_cpulimit"
Headers show

Commit Message

Konstantin Khorenko Aug. 10, 2016, 2:44 p.m.
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@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@virtuozzo.com>
---
 kernel/sched/debug.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

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);