From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Vladimir Davydov <VDavydov@parallels.com>
Cc: Ken Chen <kenchen@google.com>, "mingo@elte.hu" <mingo@elte.hu>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Subject: [PATCH] sched: fixed erroneous all_pinned logic.
Date: Fri, 08 Apr 2011 13:49:17 +0200 [thread overview]
Message-ID: <1302263357.9086.138.camel@twins> (raw)
In-Reply-To: <870910A1-62AF-412F-A989-1FA57B715E35@parallels.com>
On Fri, 2011-04-08 at 14:57 +0400, Vladimir Davydov wrote:
>
> On Apr 8, 2011, at 4:24 AM, Ken Chen wrote:
>
> > @@ -2302,6 +2292,9 @@ static int move_tasks(
> > #endif
> > } while (load_moved && max_load_move > total_load_moved);
> >
> > + if (total_load_moved)
> > + *all_pinned = 0;
> > +
> > return total_load_moved > 0;
> > }
> >
> > @@ -3300,7 +3293,7 @@ static int load_balance(
> > struct sched_domain *sd, enum cpu_idle_type idle,
> > int *balance)
> > {
> > - int ld_moved, all_pinned = 0, active_balance = 0;
> > + int ld_moved, all_pinned = 1, active_balance = 0;
> > struct sched_group *group;
> > unsigned long imbalance;
> > struct rq *busiest;
>
> As far as I understand, this patch sets the all_pinned flag if and
> only if we fail to move any tasks during the load balance. However,
> the migration can fail because e.g. all tasks are cache hot on their
> cpus (can_migrate_task() returns 0 in this case), and in this case we
> shouldn't treat all tasks as cpu bound, should we?--
Hmm, you've got a good point there... (that'll teach me to read email in
date order).
Ken would it work to only push the all_pinned = 1 higher and not also
the all_pinned = 0?
next prev parent reply other threads:[~2011-04-08 11:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 0:24 Subject: [PATCH] sched: fixed erroneous all_pinned logic Ken Chen
2011-04-08 10:57 ` Vladimir Davydov
2011-04-08 11:49 ` Peter Zijlstra [this message]
2011-04-08 19:20 ` Ken Chen
2011-04-09 11:14 ` Peter Zijlstra
2011-04-11 10:46 ` [tip:sched/urgent] sched: Fix " tip-bot for Ken Chen
2011-04-08 18:25 ` Subject: [PATCH] sched: fixed " Ken Chen
2011-04-08 11:39 ` Peter Zijlstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1302263357.9086.138.camel@twins \
--to=a.p.zijlstra@chello.nl \
--cc=VDavydov@parallels.com \
--cc=kenchen@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox