From: Ingo Molnar <mingo@elte.hu>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ken Chen <kenchen@google.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Date: Wed, 19 Nov 2008 18:39:46 +0100 [thread overview]
Message-ID: <20081119173946.GA31560@elte.hu> (raw)
In-Reply-To: <1227113269.29743.43.camel@lappy.programming.kicks-ass.net>
* Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
> On Tue, 2008-11-18 at 22:41 -0800, Ken Chen wrote:
> > In the update_shares() path leading to tg_shares_up(), the calculation of
> > per-cpu cfs_rq shares is rather erratic even under moderate task wake up
> > rate. The problem is that the per-cpu tg->cfs_rq load weight used in the
> > sd_rq_weight aggregation and actual redistribution of the cfs_rq->shares
> > are collected at different time. Under moderate system load, we've seen
> > quite a bit of variation on the cfs_rq->shares and ultimately wildly
> > affects sched_entity's load weight.
>
> Another thing we could possibly do is put a low-pass filter on the
> per-cpu load values so that we smooth out the fluctuations, hmm?
>
> > This patch caches the result of initial per-cpu load weight when doing the
> > sum calculation, and then pass it down to update_group_shares_cpu() for
> > redistributing per-cpu cfs_rq shares. This allows consistent total cfs_rq
> > shares across all CPUs. It also simplifies the rounding and zero load
> > weight check.
> >
> > Signed-off-by: Ken Chen <kenchen@google.com>
>
> This does indeed look much better, the cleanup factor alone makes it
> a worthwhile patch, he fact that is improves behaviour makes it even
> better :-)
>
> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
>
> Thanks Ken!
applied to tip/sched/core (for v2.6.29), thanks guys!
Ingo
next prev parent reply other threads:[~2008-11-19 17:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-19 6:41 Ken Chen
2008-11-19 16:47 ` Peter Zijlstra
2008-11-19 17:39 ` Ingo Molnar [this message]
2008-11-19 19:19 ` 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=20081119173946.GA31560@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=kenchen@google.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®