login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2009
»
April
»
16
Re: [PATCH] sched: fix off-by-one bug in balance_tasks()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Miao Xie
Subject:
Re: [PATCH] sched: fix off-by-one bug in balance_tasks()
Date: Wednesday, April 15, 2009 - 6:23 pm
on 2009-4-15 19:41 Peter Zijlstra wrote:
quoted text
> On Wed, 2009-04-15 at 10:49 +0800, Miao Xie wrote: >> If the load that need be moved equals the half weight of a task, I think >> it is unnecessary to move this task. Or this task will be moved back and >> forth. > > That's actually desirable. Consider the 3 tasks on 2 cpus statically > infeasible scenario. There you'd want the tasks to bounce around a bit > in order to provide fairness.
I see. Thanks for your explanation. Miao Xie
quoted text
> >> Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> >> --- >> kernel/sched.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/kernel/sched.c b/kernel/sched.c >> index 5724508..44926c8 100644 >> --- a/kernel/sched.c >> +++ b/kernel/sched.c >> @@ -3085,7 +3085,7 @@ next: >> if (!p || loops++ > sysctl_sched_nr_migrate) >> goto out; >> >> - if ((p->se.load.weight >> 1) > rem_load_move || >> + if ((p->se.load.weight >> 1) >= rem_load_move || >> !can_migrate_task(p, busiest, this_cpu, sd, idle, &pinned)) { >> p = iterator->next(iterator->arg); >> goto next; > > > >
--
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] sched: fix off-by-one bug in balance_tasks()
, Miao Xie
, (Tue Apr 14, 7:49 pm)
Re: [PATCH] sched: fix off-by-one bug in balance_tasks()
, Peter Zijlstra
, (Wed Apr 15, 4:41 am)
Re: [PATCH] sched: fix off-by-one bug in balance_tasks()
, Miao Xie
, (Wed Apr 15, 6:23 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jesse Barnes
Re: [stable] [BUG][PATCH] cpqphp: fix kernel NULL pointer dereference
Greg KH
[003/136] p54usb: add Zcomax XG-705A usbid
Magnus Damm
[PATCH 03/07] ARM: Use shared GIC entry macros on Realview
Oliver Neukum
Re: [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30
Martin Schwidefsky
Re: [PATCH] optimized ktime_get[_ts] for GENERIC_TIME=y
git
:
Junio C Hamano
Re: Some advanced index playing
Jeff King
Re: confusion over the new branch and merge config
Robin Rosenberg
Re: cvs2svn conversion directly to git ready for experimentation
Linus Torvalds
git binary size...
Ævar Arnfjörð Bjarmason
Re: Challenge with Git-Bash
git-commits-head
:
Linux Kernel Mailing List
md: move allocation of ->queue from mddev_find to md_probe
Linux Kernel Mailing List
md: raid0: Represent zone->zone_offset in sectors.
Linux Kernel Mailing List