Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1535018
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Vincent Guittot <vincent.guittot@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group |
| Date | Fri, 02 Dec 2016 16:30:01 +0100 |
| Message-ID | <sJXWF-5Az-5@gated-at.bofh.it> (permalink) |
| References | <sHqLw-2kA-3@gated-at.bofh.it> <sHqLw-2kA-1@gated-at.bofh.it> <sJcuK-6aW-9@gated-at.bofh.it> <sJdAt-6My-9@gated-at.bofh.it> <sJdAt-6My-11@gated-at.bofh.it> <sJe3v-7fx-15@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=puE93BidGI3OIxxd8AQ9pKqpUOxnZdfeSXfn49uDiSA=; b=OrqvYd2XWXBkWbWNwMK9GFTZhv6XxBi2rm1WFDyJyb6HKPPoxJ4tIMGPRuPl3EcZ7n xHSm+oGUrC5lzaSumK+Z9DCIWamq7i+hrkDtmMP3fmraKGKHIhX7PwaQm+tfiIrYCEdY XjUa/M3yCX+ouABqL0O0zoFCAybVeaY1dQLmE= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=puE93BidGI3OIxxd8AQ9pKqpUOxnZdfeSXfn49uDiSA=; b=OdrgCitPAmbbD3JIi2XnmCrAlDnXQThqjtaMhDBZZVp7OuNZed569OvU9DRt8BPSDc 6BT99kTFmAIaFsm/A5eUc30a614UF11jWpHzSg5nZC5Rf0HCwUOe9eUM9rKktAKDgMMF +fy/VPZx4QbT5gR3jyEgYVq3KrNcWh6j1cn9vsxUqsbfzNSHFpCmnP1EBx9uxBAoBAsP s0PI/kG0gMXMmLB+IRdbfJrmjVVeqd5MoZiMT1ujrA5x8ZtAVKHQgJLO44MQmNcrEjr6 +3H8Vova+yVqFEDwqObSNTcEljxRV0indTZRh4ycDKY+O/x9BjhF+WdpKIrLDkLSpXo/ D+Yw== |
| X-Gm-Message-State | AKaTC033hMBG9ZxQSUMMZaAPV6s0JQtuR7lPat5R3sBFeJpzmfbcgdQnW4NtiZ1LR+CW96Q4XcUMfsP7blXiS6Ps |
| X-Received | by 10.28.93.202 with SMTP id r193mr3725965wmb.30.1480692075132; Fri, 02 Dec 2016 07:21:15 -0800 (PST) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 64 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@kernel.org>, linux-kernel <linux-kernel@vger.kernel.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Wanpeng Li <kernellwp@gmail.com>, Yuyang Du <yuyang.du@intel.com>, Mike Galbraith <umgwanakikbuti@gmail.com> |
| X-Original-Date | Fri, 2 Dec 2016 16:20:54 +0100 |
| X-Original-Message-ID | <CAKfTPtAdeh3hXuv6S7mN9C+ZhWB3dotDo6K=HGdJ4AHtHAXJQw@mail.gmail.com> |
| X-Original-References | <1480088073-11642-1-git-send-email-vincent.guittot@linaro.org> <1480088073-11642-3-git-send-email-vincent.guittot@linaro.org> <20161130124912.GD1716@e105550-lin.cambridge.arm.com> <CAKfTPtBMeL9Omvj+KzL2KAhTH8rjz5BzPypaj6DmCXn0ykZpWg@mail.gmail.com> <CAKfTPtAavCw+bYXOd1f6V7SfWjn3xSJNVcR3Za9eOMP_GFHd3w@mail.gmail.com> <20161130142425.GF1716@e105550-lin.cambridge.arm.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1535018 |
Show key headers only | View raw
On 30 November 2016 at 15:24, Morten Rasmussen <morten.rasmussen@arm.com> wrote:
> On Wed, Nov 30, 2016 at 02:54:00PM +0100, Vincent Guittot wrote:
>> On 30 November 2016 at 14:49, Vincent Guittot
>> <vincent.guittot@linaro.org> wrote:
>> > On 30 November 2016 at 13:49, Morten Rasmussen <morten.rasmussen@arm.com> wrote:
>> >> On Fri, Nov 25, 2016 at 04:34:33PM +0100, Vincent Guittot wrote:
>> >>> find_idlest_group() only compares the runnable_load_avg when looking for
>> >>> the least loaded group. But on fork intensive use case like hackbench
>> >
>> > [snip]
>> >
>> >>> + min_avg_load = avg_load;
>> >>> + idlest = group;
>> >>> + } else if ((runnable_load < (min_runnable_load + imbalance)) &&
>> >>> + (100*min_avg_load > imbalance_scale*avg_load)) {
>> >>> + /*
>> >>> + * The runnable loads are close so we take
>> >>> + * into account blocked load through avg_load
>> >>> + * which is blocked + runnable load
>> >>> + */
>> >>> + min_avg_load = avg_load;
>> >>> idlest = group;
>> >>> }
>> >>>
>> >>> @@ -5470,13 +5495,16 @@ find_idlest_group(struct sched_domain *sd, struct task_struct *p,
>> >>> goto no_spare;
>> >>>
>> >>> if (this_spare > task_util(p) / 2 &&
>> >>> - imbalance*this_spare > 100*most_spare)
>> >>> + imbalance_scale*this_spare > 100*most_spare)
>> >>> return NULL;
>> >>> else if (most_spare > task_util(p) / 2)
>> >>> return most_spare_sg;
>> >>>
>> >>> no_spare:
>> >>> - if (!idlest || 100*this_load < imbalance*min_load)
>> >>> + if (!idlest ||
>> >>> + (min_runnable_load > (this_runnable_load + imbalance)) ||
>> >>> + ((this_runnable_load < (min_runnable_load + imbalance)) &&
>> >>> + (100*min_avg_load > imbalance_scale*this_avg_load)))
>> >>
>> >> I don't get why you have imbalance_scale applied to this_avg_load and
>> >> not min_avg_load. IIUC, you end up preferring non-local groups?
>> >
>> > In fact, I have keep the same condition that is used when looping the group.
>> > You're right that we should prefer local rq if avg_load are close and
>> > test the condition
>> > (100*this_avg_load > imbalance_scale*min_avg_load) instead
>>
>> Of course the correct condition is
>> (100*this_avg_load < imbalance_scale*min_avg_load)
>
> Agreed, I should have read the entire thread before replying :-)
Interestingly, the original condition (100*min_avg_load >
imbalance_scale*this_avg_load) gives better performance result for the
hackbench test than the new one : (100*this_avg_load <
imbalance_scale*min_avg_load)
Matt,
Have you been able to get some results for the patchset ?
Vincent
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/2 v2] sched: use load_avg for selecting idlest group Vincent Guittot <vincent.guittot@linaro.org> - 2016-11-25 16:40 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Morten Rasmussen <morten.rasmussen@arm.com> - 2016-11-30 13:50 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Vincent Guittot <vincent.guittot@linaro.org> - 2016-11-30 15:00 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Vincent Guittot <vincent.guittot@linaro.org> - 2016-11-30 15:00 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Morten Rasmussen <morten.rasmussen@arm.com> - 2016-11-30 15:30 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Vincent Guittot <vincent.guittot@linaro.org> - 2016-12-02 16:30 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Matt Fleming <matt@codeblueprint.co.uk> - 2016-12-02 23:30 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Morten Rasmussen <morten.rasmussen@arm.com> - 2016-11-30 15:30 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Brendan Gregg <brendan.d.gregg@gmail.com> - 2016-12-03 04:40 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Matt Fleming <matt@codeblueprint.co.uk> - 2016-12-03 23:00 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Vincent Guittot <vincent.guittot@linaro.org> - 2016-12-05 10:30 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Matt Fleming <matt@codeblueprint.co.uk> - 2016-12-05 14:40 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Matt Fleming <matt@codeblueprint.co.uk> - 2016-12-08 15:20 +0100
Re: [PATCH 2/2 v2] sched: use load_avg for selecting idlest group Vincent Guittot <vincent.guittot@linaro.org> - 2016-12-08 15:40 +0100
csiph-web