From: Tim Chen <tim.c.chen@linux.intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>,
Alex Shi <alex.shi@intel.com>, Ying <ying.huang@intel.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: load balancing regression since commit 367456c7
Date: Wed, 25 Apr 2012 10:58:46 -0700 [thread overview]
Message-ID: <1335376726.3796.58.camel@schen9-DESK> (raw)
In-Reply-To: <1335375798.28150.271.camel@twins>
On Wed, 2012-04-25 at 19:43 +0200, Peter Zijlstra wrote:
> Gargh.. lost the change to kernel/sched/features.h, now included.
>
> Sorry for that.
>
> ---
> Subject: sched: Fix more load-balance fallout
> From: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Date: Tue Apr 17 13:38:40 CEST 2012
>
> Commits 367456c756a6 ("sched: Ditch per cgroup task lists for
> load-balancing") and 5d6523ebd ("sched: Fix load-balance wreckage")
> left some more wreckage.
>
> By setting loop_max unconditionally to ->nr_running load-balancing
> could take a lot of time on very long runqueues (hackbench!). So keep
> the sysctl as max limit of the amount of tasks we'll iterate.
>
> Furthermore, the min load filter for migration completely fails with
> cgroups since inequality in per-cpu state can easily lead to such
> small loads :/
>
> Furthermore the change to add new tasks to the tail of the queue
> instead of the head seems to have some effect.. not quite sure I
> understand why.
>
> Combined these fixes solve the huge hackbench regression reported by
> Tim when hackbench is ran in a cgroup.
>
> Reported-by: Tim Chen <tim.c.chen@linux.intel.com>
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Link: http://lkml.kernel.org/r/1335365763.28150.267.camel@twins
The patch fixed the regression for me.
Acked-by: Tim Chen <tim.c.chen@linux.intel.com>
next prev parent reply other threads:[~2012-04-25 17:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-11 1:06 load balancing regression since commit 367456c7 Tim Chen
2012-04-17 11:43 ` Peter Zijlstra
2012-04-17 12:09 ` Peter Zijlstra
2012-04-17 16:44 ` Tim Chen
2012-04-20 14:00 ` Peter Zijlstra
2012-04-20 16:40 ` Tim Chen
2012-04-20 16:53 ` Peter Zijlstra
2012-04-20 17:13 ` Tim Chen
2012-04-20 17:33 ` Peter Zijlstra
2012-04-25 14:56 ` Peter Zijlstra
2012-04-25 17:38 ` Tim Chen
2012-04-25 17:43 ` Peter Zijlstra
2012-04-25 17:58 ` Tim Chen [this message]
2012-04-26 11:56 ` [tip:sched/urgent] sched: Fix more load-balancing fallout tip-bot for 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=1335376726.3796.58.camel@schen9-DESK \
--to=tim.c.chen@linux.intel.com \
--cc=alex.shi@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=suresh.b.siddha@intel.com \
--cc=ying.huang@intel.com \
/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