From: Ken Chen <kenchen@google.com>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Chris Friesen <cfriesen@nortel.com>, Ingo Molnar <mingo@elte.hu>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: busted CFS group load balancer?
Date: Tue, 18 Nov 2008 09:27:14 -0800 [thread overview]
Message-ID: <b040c32a0811180927r77e0a112s97a01d20d3cbe3d5@mail.gmail.com> (raw)
In-Reply-To: <1227011444.29743.15.camel@lappy.programming.kicks-ass.net>
On Tue, Nov 18, 2008 at 4:30 AM, Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
>> I'm also very troubled with this calculation in __update_group_shares_cpu():
>>
>> shares = (sd_shares * rq_weight) / (sd_rq_weight + 1);
>>
>> Won't you have rounding problem here? value 'shares' will gradually
>> decrease for each iteration of __update_group_shares_cpu()?
>
> Yes it will, however at the top of the sched-domain tree its reset.
>
> if (!sd->parent || !(sd->parent->flags & SD_LOAD_BALANCE))
> shares = tg->shares;
Hmm? it is only true mostly on flat smp machine, or on numa system
where task is woken up across a sched-domain.
There is this code in try_to_wake_up():
for_each_domain(this_cpu, sd) {
if (cpu_isset(cpu, sd->span)) {
update_shares(sd);
break;
}
}
It doesn't iterate to the top half of the time on numa machine.
- Ken
next prev parent reply other threads:[~2008-11-18 17:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-15 1:14 Ken Chen
2008-11-17 15:37 ` Chris Friesen
2008-11-17 20:04 ` Ken Chen
2008-11-17 21:19 ` Chris Friesen
2008-11-18 5:19 ` Peter Zijlstra
2008-11-18 7:33 ` Ken Chen
2008-11-18 12:30 ` Peter Zijlstra
2008-11-18 13:48 ` Peter Zijlstra
2008-11-18 17:27 ` Ken Chen [this message]
2008-11-18 7:52 ` Ken Chen
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=b040c32a0811180927r77e0a112s97a01d20d3cbe3d5@mail.gmail.com \
--to=kenchen@google.com \
--cc=a.p.zijlstra@chello.nl \
--cc=cfriesen@nortel.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
all inboxes | Powered by JetHome®