From: Tejun Heo <tj@kernel.org>
To: Vincent Guittot <vincent.guittot@linaro.org>
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
Subject: Re: [PATCH 3/3] sched/fair: Propagate runnable_load_avg independently from load_avg
Date: Fri, 5 May 2017 09:26:04 -0400 [thread overview]
Message-ID: <20170505132604.GA8936@wtj.duckdns.org> (raw)
In-Reply-To: <CAKfTPtAcTB6wZ+bTx8t8sQB2_aO3CBO9w3ymDq3CcCMz_UA=Fw@mail.gmail.com>
Hello,
On Fri, May 05, 2017 at 02:18:54PM +0200, Vincent Guittot wrote:
> >> @@ -3354,8 +3367,10 @@ enqueue_entity_load_avg(struct cfs_rq *c
> >> {
> >> struct sched_avg *sa = &se->avg;
> >>
> >> - cfs_rq->avg.runnable_load_avg += sa->load_avg;
> >> - cfs_rq->avg.runnable_load_sum += sa->load_sum;
> >> + if (entity_is_task(se)) {
> >
> > Why don't you add the runnable_load_avg of a group_entity that is enqueued ?
>
> ok, i forgot that you propagate runnable_load_avg in entity now. But
> this seems really weird and adds more exceptions to the normal
> behavior of load tracking
It seems cleaner this way to me. The actual runnable tracking is
taking place for tasks only on their immediate queues and everything
beyond that is pure propagation. The distinction is inherent as
there's no point in calculating runnable for a task's se.
Obviously, we can special-case dequeueing of nested group entities too
but it's more code and fragility.
Thanks.
--
tejun
next prev parent reply other threads:[~2017-05-05 13:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-04 20:28 [RFC PATCHSET v2] sched/fair: fix load balancer behavior when cgroup is in use Tejun Heo
2017-05-04 20:29 ` [PATCH 1/3] sched/fair: Peter's shares_type patch Tejun Heo
2017-05-05 10:40 ` Vincent Guittot
2017-05-05 15:30 ` Tejun Heo
2017-05-10 15:09 ` Tejun Heo
2017-05-10 16:07 ` Vincent Guittot
2017-05-11 6:59 ` Peter Zijlstra
2017-05-05 15:41 ` Peter Zijlstra
2017-05-04 20:29 ` [PATCH 2/3] sched/fair: Add load_weight->runnable_load_{sum|avg} Tejun Heo
2017-05-05 13:22 ` Dietmar Eggemann
2017-05-05 13:26 ` Tejun Heo
2017-05-05 13:37 ` Dietmar Eggemann
2017-05-04 20:30 ` [PATCH 3/3] sched/fair: Propagate runnable_load_avg independently from load_avg Tejun Heo
2017-05-05 10:42 ` Vincent Guittot
2017-05-05 12:18 ` Vincent Guittot
2017-05-05 13:26 ` Tejun Heo [this message]
2017-05-05 16:51 ` Vincent Guittot
2017-05-05 8:46 ` [RFC PATCHSET v2] sched/fair: fix load balancer behavior when cgroup is in use Vincent Guittot
2017-05-05 13:28 ` Tejun Heo
2017-05-05 13:32 ` Vincent Guittot
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=20170505132604.GA8936@wtj.duckdns.org \
--to=tj@kernel.org \
--cc=clm@fb.com \
--cc=efault@gmx.de \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=pjt@google.com \
--cc=torvalds@linux-foundation.org \
--cc=vincent.guittot@linaro.org \
/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®