Skip to contentSkip to conversation

sched: add missing call for calc_load_exit_idle

PATCH In review Charles Wang 4 participants 4 messages Aug 20, 2012 – Sep 4, 2012 Nohz, dynticks support

lore
Share & tools
lore
#0 lore raw

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
index 024540f..3a9e5d5 100644
@@ -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
#1 lore raw

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.

kernel/time/tick-sched.c +1 -0
index 024540f..3a9e5d5 100644
@@ -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
#2 lore raw
In reply to Charles Wang
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.

Argh! how the @#$# did that happen..

Thanks for spotting it.

#3 lore raw

[tip:sched/core] sched: Add missing call to calc_load_exit_idle()

In reply to Charles Wang
Commit-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
index 024540f..3a9e5d5 100644
@@ -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