login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
July
»
31
Re: [patch 14/26] sched: fix next_interval determination in idle_balance()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Paul E. McKenney <paulmck@...>
To: Greg KH <gregkh@...>
Cc: <linux-kernel@...>, <stable@...>, <torvalds@...>, <akpm@...>, Justin Forbes <jmforbes@...>, Zwane Mwaikambo <zwane@...>, Theodore Ts'o <tytso@...>, Randy Dunlap <rdunlap@...>, Dave Jones <davej@...>, Chuck Wolber <chuckw@...>, Chris Wedgwood <reviews@...>, Michael Krufky <mkrufky@...>, Chuck Ebbert <cebbert@...>, Domenico Andreoli <cavokz@...>, <alan@...>, <vatsa@...>, <chrisw@...>, <clameter@...>, Ingo Molnar <mingo@...>
Subject:
Re: [patch 14/26] sched: fix next_interval determination in idle_balance()
Date: Tuesday, July 31, 2007 - 11:02 am
On Mon, Jul 30, 2007 at 09:32:54PM -0700, Greg KH wrote:
quoted text
> -stable review patch. If anyone has any objections, please let us know.
Hello, Greg, No objections here -- on the contrary, very nice not to have to manually "taskset" my rcutorture runs. ;-) Thanx, Paul
quoted text
> ------------------ > > From: Christoph Lameter <clameter@sgi.com> > > Fix massive SMP imbalance on NUMA nodes observed on 2.6.21.5 with CFS. > (and later on reproduced without CFS as well). > > The intervals of domains that do not have SD_BALANCE_NEWIDLE must be > considered for the calculation of the time of the next balance. > Otherwise we may defer rebalancing forever and nodes might stay idle for > very long times. > > Siddha also spotted that the conversion of the balance interval to > jiffies is missing. Fix that to. > > From: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> > > also continue the loop if !(sd->flags & SD_LOAD_BALANCE). > > Tested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> > > It did in fact trigger under all three of mainline, CFS, and -rt > including CFS -- see below for a couple of emails from last Friday > giving results for these three on the AMD box (where it happened) and on > a single-quad NUMA-Q system (where it did not, at least not with such > severity). > > Signed-off-by: Christoph Lameter <clameter@sgi.com> > Signed-off-by: Ingo Molnar <mingo@elte.hu> > Signed-off-by: Chris Wright <chrisw@sous-sol.org> > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> > --- > kernel/sched.c | 22 +++++++++++++--------- > 1 file changed, 13 insertions(+), 9 deletions(-) > > --- linux-2.6.21.6.orig/kernel/sched.c > +++ linux-2.6.21.6/kernel/sched.c > @@ -2831,17 +2831,21 @@ static void idle_balance(int this_cpu, s > unsigned long next_balance = jiffies + 60 * HZ; > > for_each_domain(this_cpu, sd) { > - if (sd->flags & SD_BALANCE_NEWIDLE) { > + unsigned long interval; > + > + if (!(sd->flags & SD_LOAD_BALANCE)) > + continue; > + > + if (sd->flags & SD_BALANCE_NEWIDLE) > /* If we've pulled tasks over stop searching: */ > pulled_task = load_balance_newidle(this_cpu, > - this_rq, sd); > - if (time_after(next_balance, > - sd->last_balance + sd->balance_interval)) > - next_balance = sd->last_balance > - + sd->balance_interval; > - if (pulled_task) > - break; > - } > + this_rq, sd); > + > + interval = msecs_to_jiffies(sd->balance_interval); > + if (time_after(next_balance, sd->last_balance + interval)) > + next_balance = sd->last_balance + interval; > + if (pulled_task) > + break; > } > if (!pulled_task) > /* > > --
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 00/26] 2.6.21.7 -stable review
, Greg KH
, (Tue Jul 31, 12:30 am)
Re: [patch 00/26] 2.6.21.7 -stable review
, Greg KH
, (Tue Jul 31, 12:43 am)
Re: [patch 00/26] 2.6.21.7 -stable review
, Stefan Richter
, (Tue Jul 31, 6:50 am)
Re: [patch 00/26] 2.6.21.7 -stable review
, Greg KH
, (Tue Jul 31, 3:47 pm)
[patch 24/26] sky2: workaround for lost IRQ
, Greg KH
, (Tue Jul 31, 12:33 am)
[patch 26/26] V4L: cx88-blackbird: fix vidioc_g_tuner never ...
, Greg KH
, (Tue Jul 31, 12:34 am)
[patch 13/26] hugetlb: fix get_policy for stacked shared mem...
, Greg KH
, (Tue Jul 31, 12:32 am)
[patch 23/26] NTP: remove clock_was_set() call to prevent de...
, Greg KH
, (Tue Jul 31, 12:33 am)
[patch 20/26] saa7134: fix thread shutdown handling
, Greg KH
, (Tue Jul 31, 12:33 am)
Re: [patch 20/26] saa7134: fix thread shutdown handling
, Mauro Carvalho Chehab
, (Tue Jul 31, 1:05 am)
Re: [patch 20/26] saa7134: fix thread shutdown handling
, Greg KH
, (Tue Jul 31, 1:16 am)
[patch 18/26] POWERPC: Fix subtle FP state corruption bug in...
, Greg KH
, (Tue Jul 31, 12:33 am)
[patch 25/26] V4L: bttv: fix v4l1 api usage breaking the dri...
, Greg KH
, (Tue Jul 31, 12:33 am)
[patch 21/26] serial: clear proper MPSC interrupt cause bits
, Greg KH
, (Tue Jul 31, 12:33 am)
[patch 19/26] mm: kill validate_anon_vma to avoid mapcount BUG
, Greg KH
, (Tue Jul 31, 12:33 am)
[patch 22/26] i386: fix infinite loop with singlestep int80 ...
, Greg KH
, (Tue Jul 31, 12:33 am)
[patch 17/26] audit: fix oops removing watch if audit disabled
, Greg KH
, (Tue Jul 31, 12:33 am)
[patch 16/26] FUTEX: Restore the dropped ERSCH fix
, Greg KH
, (Tue Jul 31, 12:33 am)
[patch 15/26] posix-timers: Prevent softirq starvation by sm...
, Greg KH
, (Tue Jul 31, 12:32 am)
[patch 14/26] sched: fix next_interval determination in idle...
, Greg KH
, (Tue Jul 31, 12:32 am)
Re: [patch 14/26] sched: fix next_interval determination in ...
, Paul E. McKenney
, (Tue Jul 31, 11:02 am)
[patch 12/26] dm crypt: fix remove first_clone
, Greg KH
, (Tue Jul 31, 12:32 am)
[patch 07/26] md: Fix two raid10 bugs.
, Greg KH
, (Tue Jul 31, 12:31 am)
[patch 10/26] dm crypt: fix call to clone_init
, Greg KH
, (Tue Jul 31, 12:32 am)
[patch 11/26] dm crypt: fix avoid cloned bio ref after free
, Greg KH
, (Tue Jul 31, 12:32 am)
[patch 09/26] dm crypt: disable barriers
, Greg KH
, (Tue Jul 31, 12:32 am)
[patch 05/26] pi-futex: Fix exit races and locking problems
, Greg KH
, (Tue Jul 31, 12:31 am)
[patch 08/26] md: Fix bug in error handling during raid1 rep...
, Greg KH
, (Tue Jul 31, 12:32 am)
[patch 03/26] rt-mutex: Fix stale return value
, Greg KH
, (Tue Jul 31, 12:31 am)
[patch 02/26] sparsemem: fix oops in x86_64 show_mem
, Greg KH
, (Tue Jul 31, 12:31 am)
[patch 06/26] hpt366: disallow Ultra133 for HPT374
, Greg KH
, (Tue Jul 31, 12:31 am)
[patch 04/26] rt-mutex: Fix chain walk early wakeup bug
, Greg KH
, (Tue Jul 31, 12:31 am)
[patch 01/26] BNX2: Fix netdev watchdog on 5708.
, Greg KH
, (Tue Jul 31, 12:31 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
David Miller
Slow DOWN, please!!!
Bill Davidsen
Re: [patch] CFS scheduler, -v19
linux-netdev
:
Tomas Winkler
[PATCH] iwlwifi: compilation error when CONFIG_IWLWIFI_DEBUG is not set
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Corey Minyard
Re: [PATCH 3/3] Convert the UDP hash lock to RCU
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
528 guests
online.
Online users
srinivas kandagatla
ijaldmi
Syndicate