sched: add missing call for calc_load_exit_idle
PATCH 1/1 sched: add missing call for calc_load_exit_idle
Quoted 1 line
From Charles Wang <[email protected]>
Azat Khuzhin reported "high loadavg in linux-3.6"
After checking for upstream's code, I found Peter's patch (Commit id:5167e8d5417bf5c322a703d2927daec727ea40dd) not be fully applied, missing the call for calc_load_exit_idle. After that idle exit in sampling window will always be calculated
to non-idle, and the load will be higher than normal.
This patch add the missing call for calc_load_exit_idle.
kernel/time/tick-sched.c +1 -0
@@ -573,6 +573,7 @@ static void tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now)tick_do_update_jiffies64 (now);update_cpu_load_nohz (); +calc_load_exit_idle ();touch_softlockup_watchdog ();/* * Cancel the scheduled timer and restore the tick
Signature · 1 line
1.7.9.5
No email address provided by Azat Khuzhin, so I don't know how to let him know this. - -!
Quoted 27 lines · Charles Wang
From Charles Wang <[email protected]>
Azat Khuzhin reported "high loadavg in linux-3.6"
After checking for upstream's code, I found Peter's patch (Commit id:5167e8d5417bf5c322a703d2927daec727ea40dd) not be fully applied, missing the call for
calc_load_exit_idle. After that idle exit in sampling window will always be calculated
to non-idle, and the load will be higher than normal.This patch add the missing call for
calc_load_exit_idle.Signed-off-by Charles Wang <[email protected]>kernel/time/tick-sched.c +1
-0@@ -573,6 +573,7 @@ static void tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now)tick_do_update_jiffies64 (now);update_cpu_load_nohz (); +calc_load_exit_idle ();touch_softlockup_watchdog ();/* * Cancel the scheduled timer and restore the tick
Quoted 10 lines · Charles Wang
From Charles Wang <[email protected]>
Azat Khuzhin reported "high loadavg in linux-3.6"
After checking for upstream's code, I found Peter's patch (Commit id:5167e8d5417bf5c322a703d2927daec727ea40dd) not be fully applied, missing the call for
calc_load_exit_idle. After that idle exit in sampling window will always be calculated
to non-idle, and the load will be higher than normal.
Quoted 3 lines
This patch add the missing call for
calc_load_exit_idle.Signed-off-by Charles Wang <[email protected]>
Argh! how the @#$# did that happen..
Thanks for spotting it.
[tip:sched/core] sched: Add missing call to calc_load_exit_idle()
In reply to Charles WangCommit-ID: 749c8814f08f12baa4a9c2812a7c6ede7d69507d Gitweb: http://git.kernel.org/tip/749c8814f08f12baa4a9c2812a7c6ede7d69507d Author: Charles Wang <[email protected]> AuthorDate: Mon, 20 Aug 2012 16:02:33 +0800 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 4 Sep 2012 14:30:29 +0200
sched: Add missing call to calc_load_exit_idle()
Azat Khuzhin reported high loadavg in Linux v3.6
After checking the upstream scheduler code, I found Peter's commit:
5167e8d5417b sched/nohz: Rewrite and fix load-avg computation -- again
not fully applied, missing the call to calc_load_exit_idle().
After that idle exit in sampling window will always be calculated to non-idle, and the load will be higher than normal.
This patch adds the missing call to calc_load_exit_idle().
--- kernel/time/tick-sched.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
kernel/time/tick-sched.c +1 -0
@@ -573,6 +573,7 @@ static void tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now)tick_do_update_jiffies64 (now);update_cpu_load_nohz (); +calc_load_exit_idle ();touch_softlockup_watchdog ();/* * Cancel the scheduled timer and restore the tick