Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1631639
| Path | csiph.com!news.redatomik.org!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Vincent Guittot <vincent.guittot@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg |
| Date | Wed, 26 Apr 2017 20:20:01 +0200 |
| Message-ID | <tAzHH-5SI-7@gated-at.bofh.it> (permalink) |
| References | <tzSCK-37e-13@gated-at.bofh.it> <tzSCK-37e-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=SEalg3RDX10G/OO7cEqLoWywHHJQwBuyvWzKD87VMZM=; b=XhL9jIxFHNJ5Fo5DzFmAWza08Zr/fFMLhIztrvAcLBQ4+8QAC/tFinCHu2n3Mmnb2X YLngMmQdv5rRZL+FVtYiO0WvjZSMAEqt27Q643qgGgALtiL473jc5xw/whg/FW1QvISS UTHpnIQdu2Y6mOw0NgNC4QzNfyKxblycs7WPs= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SEalg3RDX10G/OO7cEqLoWywHHJQwBuyvWzKD87VMZM=; b=K1xw20a0S64mjMiW1vF3M6XJZT8wy0ronj1qHOZvxgxHuviCYQhA9Gj6XGO/5+96Lg BSlz+9H5gBeBtUIpps3r/jJcecqNmsF2nyRBzuSByzY0FIr+bhBA8DpO69L38sF2WfqC TofxceevJ1dSl1EjZCTK2RfpLl+HFXgEN/aR5pIOXBHNTCeTNJkhiCQDbtWlZ16cSagM H+Tfc/4bS3WtrRieWNoTVEI4nj/DlMX3V5AaHWhd7JBHcvUN6cpBhue7wPPoHdYMsT6F UbNdFQwq8rbJqwuuZmnl8JbkFYpeKrsjRPyjF7txMrNJgDMqaNBdinqcUhgrpwKep0jn bS0g== |
| X-Gm-Message-State | AN3rC/5kj1gubMZSOuBTQ3/E+InFj+HFL5IvE14mwBLwwOv4idR/9Y9d p1XVKKhdiMxPeW4uc1tPx8bFKiyAVr4K |
| X-Received | by 10.202.196.73 with SMTP id u70mr581696oif.187.1493230350317; Wed, 26 Apr 2017 11:12:30 -0700 (PDT) |
| 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 | 40 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, linux-kernel <linux-kernel@vger.kernel.org>, Linus Torvalds <torvalds@linux-foundation.org>, Mike Galbraith <efault@gmx.de>, Paul Turner <pjt@google.com>, Chris Mason <clm@fb.com>, kernel-team@fb.com |
| X-Original-Date | Wed, 26 Apr 2017 20:12:09 +0200 |
| X-Original-Message-ID | <CAKfTPtDsZ4bRbmd47a3P-jDq4GC8FfM9=b+jpqnLEHqA8L+UtQ@mail.gmail.com> |
| X-Original-References | <20170424201344.GA14169@wtj.duckdns.org> <20170424201444.GC14169@wtj.duckdns.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1631639 |
Show key headers only | View raw
On 24 April 2017 at 22:14, Tejun Heo <tj@kernel.org> wrote: > We noticed that with cgroup CPU controller in use, the scheduling > > Note the drastic increase in p99 scheduling latency. After > investigation, it turned out that the update_sd_lb_stats(), which is > used by load_balance() to pick the most loaded group, was often > picking the wrong group. A CPU which has one schbench running and Can the problem be on the load balance side instead ? and more precisely in the wakeup path ? After looking at the trace, it seems that task placement happens at wake up path and if it fails to select the right idle cpu at wake up, you will have to wait for a load balance which is alreayd too late > another queued wouldn't report the correspondingly higher It will as load_avg includes the runnable_load_avg so whatever load is in runnable_load_avg will be in load_avg too. But at the contrary, runnable_load_avg will not have the blocked that is going to wake up soon in the case of schbench One last thing, the load_avg of an idle CPU can stay blocked for a while (until a load balance happens that will update blocked load) and can be seen has "busy" whereas it is not. Could it be a reason of your problem ? I have an ongoing patch to solve the problem at least partly if this can be a reason > weighted_cpuload() and get looked over as the target of load > balancing. > > weighted_cpuload() is the root cfs_rq's runnable_load_avg which is the > sum of the load_avg of all queued sched_entities. Without cgroups or > at the root cgroup, each task's load_avg contributes directly to the > sum. When a task wakes up or goes to sleep, the change is immediately > reflected on runnable_load_avg which in turn affects load balancing. > > #else /* CONFIG_FAIR_GROUP_SCHED */
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-04-26 20:20 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Tejun Heo <tj@kernel.org> - 2017-04-27 01:00 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-04-27 10:30 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Tejun Heo <tj@kernel.org> - 2017-04-28 22:40 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Tejun Heo <tj@kernel.org> - 2017-04-28 22:40 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Peter Zijlstra <peterz@infradead.org> - 2017-05-01 18:00 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Tejun Heo <tj@kernel.org> - 2017-05-03 00:10 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-02 09:20 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-02 15:30 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Tejun Heo <tj@kernel.org> - 2017-05-03 00:40 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Tejun Heo <tj@kernel.org> - 2017-05-03 00:00 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-03 09:40 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Peter Zijlstra <peterz@infradead.org> - 2017-05-03 11:40 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-03 12:40 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Peter Zijlstra <peterz@infradead.org> - 2017-05-03 15:20 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Tejun Heo <tj@kernel.org> - 2017-05-03 23:50 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-04 10:30 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Tejun Heo <tj@kernel.org> - 2017-05-04 19:50 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-04 21:10 +0200
Re: [PATCH 2/2] sched/fair: Always propagate runnable_load_avg Tejun Heo <tj@kernel.org> - 2017-05-04 21:10 +0200
csiph-web