Bug 13750
Summary: | Load average flatlines after returning from hibernate | ||
---|---|---|---|
Product: | Power Management | Reporter: | Duncan (1i5t5.duncan) |
Component: | Hibernation/Suspend | Assignee: | power-management_other |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | rjw |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.30-5659-g300df7d | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 13615 | ||
Attachments: | kernel config (2.6.31-rc2 version) |
Description
Duncan
2009-07-09 15:14:27 UTC
Created attachment 22324 [details] kernel config (2.6.31-rc2 version) OK, did a bisect. Here's the whatchanged -1 version of the result. The commit does what it says on the label, affect load average. =:^) I'm attaching my config (2.6.31-rc2 version) as well. If you need anything else or want me to run a debug patch or something, let me know. commit dce48a84adf1806676319f6f480e30a6daa012f9 Author: Thomas Gleixner <tglx@linutronix.de> Date: Sat Apr 11 10:43:41 2009 +0200 sched, timers: move calc_load() to scheduler Dimitri Sivanich noticed that xtime_lock is held write locked across calc_load() which iterates over all online CPUs. That can cause long latencies for xtime_lock readers on large SMP systems. The load average calculation is an rough estimate anyway so there is no real need to protect the readers vs. the update. It's not a problem when the avenrun array is updated while a reader copies the values. Instead of iterating over all online CPUs let the scheduler_tick code update the number of active tasks shortly before the avenrun update happens. The avenrun update itself is handled by the CPU which calls do_timer(). [ Impact: reduce xtime_lock write locked section ] Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra <peterz@infradead.org> :100644 100644 b4c38bc... 6eb4892... M include/linux/sched.h :100644 100644 8908d19... f4eb881... M kernel/sched.c :100644 100644 8a21a2e... 499672c... M kernel/sched_idletask.c :100644 100644 687dff4... 52a8bf8... M kernel/time/timekeeping.c :100644 100644 cffffad... 6a21d7a... M kernel/timer.c As Peterz indicated on the mail, it's now fixed (late in the rc3 cycle, for rc4). From the mail: commit 6301cb95c119ebf324bb96ee226fa9ddffad80a7 Author: Thomas Gleixner <tglx@linutronix.de> Date: Fri Jul 17 14:15:47 2009 +0200 sched: fix nr_uninterruptible accounting of frozen tasks really commit a468d389349a7560249b355cdb6d2097ea1616c9 Author: Thomas Gleixner <tglx@linutronix.de> Date: Fri Jul 17 14:15:46 2009 +0200 sched: fix load average accounting vs. cpu hotplug Incidentally, I guess this should go in as a bugzilla.kernel.org bug, the status description link is apparently still generic bugzilla, as it has fixed, etc, not the kernel-bugs specific CODE_FIX, PATCH_ALREADY_AVAILABLE, etc. I was unsure of which to use for resolution, and the status link, being generic, isn't any help. So I picked CODE_FIX. Re: Comment #2: CODE_FIX, PATCH_ALREADY_AVAILABLE, etc. I was unsure of which to use for resolution, and the status link, being generic, isn't any help. Bug filed: Bug 13851 On Monday 27 July 2009, Peter Zijlstra wrote:
> On Sun, 2009-07-26 at 22:28 +0200, Rafael J. Wysocki wrote:
> > This message has been generated automatically as a part of a report
> > of recent regressions.
> >
> > The following bug entry is on the current list of known regressions
> > from 2.6.30. Please verify if it still should be listed and let me know
> > (either way).
> >
> >
> > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13750
> > Subject : Load average flatlines after returning from hibernate
> > Submitter : Duncan <1i5t5.duncan@cox.net>
> > Date : 2009-07-09 15:14 (18 days old)
> >
> >
>
> commit 6301cb95c119ebf324bb96ee226fa9ddffad80a7
> Author: Thomas Gleixner <tglx@linutronix.de>
> Date: Fri Jul 17 14:15:47 2009 +0200
>
> sched: fix nr_uninterruptible accounting of frozen tasks really
>
>
> commit a468d389349a7560249b355cdb6d2097ea1616c9
> Author: Thomas Gleixner <tglx@linutronix.de>
> Date: Fri Jul 17 14:15:46 2009 +0200
>
> sched: fix load average accounting vs. cpu hotplug
|