Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1411521 > unrolled thread

Re: [PATCH 07/16] sched: Make SD_BALANCE_WAKE a topology flag

Started byPeter Zijlstra <peterz@infradead.org>
First post2016-06-01 22:20 +0200
Last post2016-06-08 10:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 07/16] sched: Make SD_BALANCE_WAKE a topology flag Peter Zijlstra <peterz@infradead.org> - 2016-06-01 22:20 +0200
    Re: [PATCH 07/16] sched: Make SD_BALANCE_WAKE a topology flag Morten Rasmussen <morten.rasmussen@arm.com> - 2016-06-08 10:50 +0200

#1411521 — Re: [PATCH 07/16] sched: Make SD_BALANCE_WAKE a topology flag

FromPeter Zijlstra <peterz@infradead.org>
Date2016-06-01 22:20 +0200
SubjectRe: [PATCH 07/16] sched: Make SD_BALANCE_WAKE a topology flag
Message-ID<rFkMp-4JV-1@gated-at.bofh.it>
On Mon, May 23, 2016 at 11:58:49AM +0100, Morten Rasmussen wrote:
> For systems with the SD_ASYM_CPUCAPACITY flag set on higher level in the
> sched_domain hierarchy we need a way to enable wake-up balancing for the
> lower levels as well as we may want to balance tasks that don't fit the
> capacity of the previous cpu.
> 
> We have the option of introducing a new topology flag to express this
> requirement, or let the existing SD_BALANCE_WAKE flag be set by the
> architecture as a topology flag. The former means introducing yet
> another flag, the latter breaks the current meaning of topology flags.
> None of the options are really desirable.

So why can't you couple this to ASYM_CAPACITY? If that's set anywhere,
add BALANCE_WAKE as appropriate?

[toc] | [next] | [standalone]


#1417091

FromMorten Rasmussen <morten.rasmussen@arm.com>
Date2016-06-08 10:50 +0200
Message-ID<rHHlw-6ig-53@gated-at.bofh.it>
In reply to#1411521
On Wed, Jun 01, 2016 at 10:18:17PM +0200, Peter Zijlstra wrote:
> On Mon, May 23, 2016 at 11:58:49AM +0100, Morten Rasmussen wrote:
> > For systems with the SD_ASYM_CPUCAPACITY flag set on higher level in the
> > sched_domain hierarchy we need a way to enable wake-up balancing for the
> > lower levels as well as we may want to balance tasks that don't fit the
> > capacity of the previous cpu.
> > 
> > We have the option of introducing a new topology flag to express this
> > requirement, or let the existing SD_BALANCE_WAKE flag be set by the
> > architecture as a topology flag. The former means introducing yet
> > another flag, the latter breaks the current meaning of topology flags.
> > None of the options are really desirable.
> 
> So why can't you couple this to ASYM_CAPACITY? If that's set anywhere,
> add BALANCE_WAKE as appropriate?

That should be possible. It is set at the sched_domain levels that span
cpus of different capacity, but we need to set BALANCE_WAKE on the level
below as well. So we would have to introduce a dependency between flags
set at different levels.

However, following the discussion with Vincent on enabling WAKE_AFFINE
across cpus of different capacity, I might be able to repurpose
ASYM_CPUCAPACITY to set BALANCE_WAKE instead which would be simpler I
think.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web