From: Ingo Molnar <mingo@elte.hu>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: "Chen, Kenneth W" <kenneth.w.chen@intel.com>,
Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org
Subject: Re: better wake-balancing: respin
Date: Fri, 28 Oct 2005 16:37:50 +0200 [thread overview]
Message-ID: <20051028143750.GA1806@elte.hu> (raw)
In-Reply-To: <43620583.9080500@yahoo.com.au>
* Nick Piggin <nickpiggin@yahoo.com.au> wrote:
> Ingo, I wasn't aware that tasks are bouncing around wildly; does your
> patch improve things? Then by definition it must penalise workloads
> where the pairings are more predictable?
for TPC, most of the non-to-idle migrations are 'wrong'. So basically
any change that gets rid of extra migrations is a win. This does not
mean that it is all bouncing madly.
> I would prefer to try fixing wake balancing before giving up and
> turning it off for busy CPUs.
agreed, and that was my suggestion: improve the heuristics to not hurt
workloads where there is no natural pairing.
one possible way would be to do a task_hot() check in the passive
balancing code, and only migrate the task when it's been inactive for a
long time: that should be the case for most TPC wakeups. (This assumes
an accurate cache-hot estimator, for which another patch exists.)
> Without any form of wake balancing, then a multiprocessor system will
> tend to have a completely random distribution of tasks over CPUs over
> time. I prefer to add a driver so it is not completely random for
> amenable workloads.
but my patch does not do 'no form of wake balancing'. It will do
non-load-related wake balancing if the target CPU is idle. Arguably,
that can easily be 'never' under common workloads.
Ingo
next prev parent reply other threads:[~2005-10-28 14:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-27 1:24 better wake-balancing: respin Chen, Kenneth W
2005-10-28 7:40 ` Ingo Molnar
2005-10-28 22:34 ` Chen, Kenneth W
2005-10-28 9:17 ` Nick Piggin
2005-10-28 10:08 ` Ingo Molnar
2005-10-28 11:03 ` Nick Piggin
2005-10-28 14:37 ` Ingo Molnar [this message]
2005-10-28 15:04 ` Nick Piggin
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=20051028143750.GA1806@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@osdl.org \
--cc=kenneth.w.chen@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nickpiggin@yahoo.com.au \
/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