From: Peter Zijlstra <peterz@infradead.org>
To: Chetan Ahuja <chetan.ahuja@gmail.com>
Cc: Venkatesh Pallipadi <venki@google.com>,
linux-kernel@vger.kernel.org,
Suresh Siddha <suresh.b.siddha@intel.com>
Subject: Re: divide by zero bug in find_busiest_group
Date: Fri, 27 Aug 2010 09:51:34 +0200 [thread overview]
Message-ID: <1282895494.1975.1693.camel@laptop> (raw)
In-Reply-To: <AANLkTikg7Q_oOecNgVLPPTu3dOu3aO776f4y1bw410PV@mail.gmail.com>
On Thu, 2010-08-26 at 16:52 -0700, Chetan Ahuja wrote:
> For one thing, I don't understand the reason for recomputing
> cpu_power dynamically. How does cpu_power of a gorup (which I believe
> refers to the group of "hyper-threaded" cores on one physical core)
> change while inthe system is in operation ? Is this in support of
> hot-swappable CPU's or something ?
No the groups are used for increasingly larger accumulations of cpus,
the first group is the singleton group which contains on the one cpu in
question, after that we start following the machine topology,
hyper-threads, multi-core, package, node etc. until the last group spans
the whole machine.
The dynamic cpu_power computation comes from RT tasks, when we
load-balance SCHED_OTHER tasks, we want each cpu to have an equal amount
of pending work, however when one CPU is say 50% busy with RT tasks (and
hopefully soon IRQ load), it cannot perform the same amount of work as
another unloaded cpu, therefore we need to normalize the relative load
levels between cpu. We use cpu_power as this load normalization factor.
Load balancing works by balancing this group hierarchy, a number of
groups are contained in a domain. Each cpu does a load-balance pull,
from the busiest group in that domain to his local domain. Since there's
ever smaller groups/domains you eventually end up with a nicely spread
load.
> To be honest, for my use case, I'd like to just disable the whole
> work-stealing stuff (referred to as load-balancing in the kernel).
> There seems to be no config option that isolates just the dynamic
> load-balancing parts (or is there ?) so maybe I'd just hack away the
> load-balancing functions by hand so as never to worry about those
> denominators again.
You can do that at runtime, read: Documentation/cgroups/cpusets.txt
next prev parent reply other threads:[~2010-08-27 7:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-26 1:17 Chetan Ahuja
2010-08-26 19:19 ` Venkatesh Pallipadi
2010-08-26 23:52 ` Chetan Ahuja
2010-08-27 7:51 ` Peter Zijlstra [this message]
2010-08-27 8:13 ` Peter Zijlstra
2010-08-27 17:39 ` Venkatesh Pallipadi
2010-08-27 8:08 ` Peter Zijlstra
2010-09-15 20:29 Joe Williams
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=1282895494.1975.1693.camel@laptop \
--to=peterz@infradead.org \
--cc=chetan.ahuja@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=suresh.b.siddha@intel.com \
--cc=venki@google.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
all inboxes | Powered by JetHome®