Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1606747
| From | Vincent Guittot <vincent.guittot@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] sched/fair: Fix ftq noise bench regression |
| Date | 2017-03-22 18:00 +0100 |
| Message-ID | <tnRM5-5ys-11@gated-at.bofh.it> (permalink) |
| References | <tm0qt-7b2-7@gated-at.bofh.it> <tnw4V-6ys-5@gated-at.bofh.it> <tnKUi-es-9@gated-at.bofh.it> <tnRsJ-5on-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 22 March 2017 at 17:22, Dietmar Eggemann <dietmar.eggemann@arm.com> wrote:
> On 22/03/17 09:22, Vincent Guittot wrote:
>> On 21 March 2017 at 18:46, Dietmar Eggemann <dietmar.eggemann@arm.com> wrote:
>>> Hi Vincent,
>>>
>>> On 17/03/17 13:47, Vincent Guittot wrote:
>>>
>>> [...]
>>>
>>>> Reported-by: ying.huang@linux.intel.com
>>>> Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
>>>> Fixes: 4e5160766fcc ("sched/fair: Propagate asynchrous detach")
>
> [...]
>
>>> Why not turn skip_blocked_update(se) into blocked_update_needed(cpu, cfs_rq)?
>>> Saves a couple of patch lines:
>>
>> Are you sure that we are saving some patch lines ?
>
> Sorry, it's actually the same :-)
>
>>
>> I tend to agree on the name and but not on parameters.
>> IMO, it's easier to understand the purpose of
>> blocked_update_needed(se) compared to blocked_update_needed(cpu,
>> cfs_rq)
>
> OK, so:
>
> - /* Propagate pending load changes to the parent */
> - if (cfs_rq->tg->se[cpu])
> + /* Propagate pending load changes to the parent if any */
> + if (blocked_update_needed(cfs_rq->tg->se[cpu]))
>
> and
>
> +static inline bool blocked_update_needed(struct sched_entity *se)
> +{
> + struct cfs_rq *gcfs_rq = group_cfs_rq(se);
gcfs_rq can't be set before testing that se is not null
> +
> + /* cfs_rq of a root task_group has no sched_entity counterpart */
> + if (!se)
> + return false;
> +
> + /*
> + * If sched_entity still have not null load or utilization, we
> have to
> + * decay it.
> + */
> ....
>
> Would make sense to me ...
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] sched/fair: Fix ftq noise bench regression Vincent Guittot <vincent.guittot@linaro.org> - 2017-03-17 14:50 +0100
Re: [PATCH] sched/fair: Fix ftq noise bench regression Dietmar Eggemann <dietmar.eggemann@arm.com> - 2017-03-21 18:50 +0100
Re: [PATCH] sched/fair: Fix ftq noise bench regression Vincent Guittot <vincent.guittot@linaro.org> - 2017-03-22 10:40 +0100
Re: [PATCH] sched/fair: Fix ftq noise bench regression Dietmar Eggemann <dietmar.eggemann@arm.com> - 2017-03-22 17:40 +0100
Re: [PATCH] sched/fair: Fix ftq noise bench regression Vincent Guittot <vincent.guittot@linaro.org> - 2017-03-22 18:00 +0100
Re: [PATCH] sched/fair: Fix ftq noise bench regression Dietmar Eggemann <dietmar.eggemann@arm.com> - 2017-03-22 18:30 +0100
[tip:sched/core] sched/fair: Fix FTQ noise bench regression tip-bot for Vincent Guittot <tipbot@zytor.com> - 2017-03-23 11:10 +0100
csiph-web