Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1636377
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/3] sched/fair: Propagate runnable_load_avg independently from load_avg |
| Date | 2017-05-05 15:30 +0200 |
| Message-ID | <tDLt0-2gd-17@gated-at.bofh.it> (permalink) |
| References | <tDvxT-8pV-5@gated-at.bofh.it> <tDvHA-8tt-31@gated-at.bofh.it> <tDIY9-yX-9@gated-at.bofh.it> <tDKnf-1Cl-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCHSET v2] sched/fair: fix load balancer behavior when cgroup is in use Tejun Heo <tj@kernel.org> - 2017-05-04 22:30 +0200
[PATCH 2/3] sched/fair: Add load_weight->runnable_load_{sum|avg} Tejun Heo <tj@kernel.org> - 2017-05-04 22:40 +0200
Re: [PATCH 2/3] sched/fair: Add load_weight->runnable_load_{sum|avg} Dietmar Eggemann <dietmar.eggemann@arm.com> - 2017-05-05 15:30 +0200
Re: [PATCH 2/3] sched/fair: Add load_weight->runnable_load_{sum|avg} Tejun Heo <tj@kernel.org> - 2017-05-05 15:30 +0200
Re: [PATCH 2/3] sched/fair: Add load_weight->runnable_load_{sum|avg} Dietmar Eggemann <dietmar.eggemann@arm.com> - 2017-05-05 15:50 +0200
[PATCH 3/3] sched/fair: Propagate runnable_load_avg independently from load_avg Tejun Heo <tj@kernel.org> - 2017-05-04 22:40 +0200
Re: [PATCH 3/3] sched/fair: Propagate runnable_load_avg independently from load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-05 12:50 +0200
Re: [PATCH 3/3] sched/fair: Propagate runnable_load_avg independently from load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-05 14:20 +0200
Re: [PATCH 3/3] sched/fair: Propagate runnable_load_avg independently from load_avg Tejun Heo <tj@kernel.org> - 2017-05-05 15:30 +0200
Re: [PATCH 3/3] sched/fair: Propagate runnable_load_avg independently from load_avg Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-05 19:00 +0200
[PATCH 1/3] sched/fair: Peter's shares_type patch Tejun Heo <tj@kernel.org> - 2017-05-04 22:40 +0200
Re: [PATCH 1/3] sched/fair: Peter's shares_type patch Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-05 12:50 +0200
Re: [PATCH 1/3] sched/fair: Peter's shares_type patch Tejun Heo <tj@kernel.org> - 2017-05-05 17:40 +0200
Re: [PATCH 1/3] sched/fair: Peter's shares_type patch Tejun Heo <tj@kernel.org> - 2017-05-10 17:20 +0200
Re: [PATCH 1/3] sched/fair: Peter's shares_type patch Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-10 18:10 +0200
Re: [PATCH 1/3] sched/fair: Peter's shares_type patch Peter Zijlstra <peterz@infradead.org> - 2017-05-11 09:00 +0200
Re: [PATCH 1/3] sched/fair: Peter's shares_type patch Peter Zijlstra <peterz@infradead.org> - 2017-05-05 17:50 +0200
Re: [RFC PATCHSET v2] sched/fair: fix load balancer behavior when cgroup is in use Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-05 10:50 +0200
Re: [RFC PATCHSET v2] sched/fair: fix load balancer behavior when cgroup is in use Tejun Heo <tj@kernel.org> - 2017-05-05 15:30 +0200
Re: [RFC PATCHSET v2] sched/fair: fix load balancer behavior when cgroup is in use Vincent Guittot <vincent.guittot@linaro.org> - 2017-05-05 15:40 +0200
csiph-web