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


Groups > linux.kernel > #1441403

Re: [PATCH v2 05/13] sched: Enable SD_BALANCE_WAKE for asymmetric capacity systems

From Morten Rasmussen <morten.rasmussen@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 05/13] sched: Enable SD_BALANCE_WAKE for asymmetric capacity systems
Date 2016-07-12 16:30 +0200
Message-ID <rU6Rc-66R-29@gated-at.bofh.it> (permalink)
References (1 earlier) <rMTP5-6im-57@gated-at.bofh.it> <rTGk2-5Co-23@gated-at.bofh.it> <rTGN4-5On-13@gated-at.bofh.it> <rTHg6-6eK-25@gated-at.bofh.it> <rTHzr-6lC-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jul 11, 2016 at 01:24:04PM +0200, Peter Zijlstra wrote:
> On Mon, Jul 11, 2016 at 12:04:58PM +0100, Morten Rasmussen wrote:
> 
> > One alternative to setting ASYM_CAP bottom up would be to set it only
> > where the asymmetry can be observed, and instead come up with a more
> > complicated way of setting BALANCE_WAKE bottom up until and including
> > the first level having the ASYM_CAP.
> 
> Right, that is what I was thinking.
> 
> > I looked at it briefly an realized that I couldn't find a clean way of
> > implementing it as I don't think we have visibility of which flags that
> > will be set at higher levels in the sched_domain hierarchy when the
> > lower levels are initialized. IOW, we have behavioural flags settings
> > depend on topology flags settings at a different level.
> 
> Looks doable if we pass @child into sd_init() in build_sched_domain().
> Then we could simply do:
> 
> 	*sd = (struct sched_domain){
> 		/* ... */
> 		.child = child,
> 	};
> 
> 	if (sd->flags & ASYM_CAP) {
> 		struct sched_domain *t = sd;
> 		while (t) {
> 			t->sd_flags |= BALANCE_WAKE;
> 			t = t->child;
> 		}
> 	}
> 
> Or something like that.

It appears to be working fine. I will roll it into v3 along with the
simpler and more sane ASYM_CAP semantics :)

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 05/13] sched: Enable SD_BALANCE_WAKE for asymmetric  capacity systems Peter Zijlstra <peterz@infradead.org> - 2016-07-11 12:10 +0200
  Re: [PATCH v2 05/13] sched: Enable SD_BALANCE_WAKE for asymmetric  capacity systems Morten Rasmussen <morten.rasmussen@arm.com> - 2016-07-11 12:40 +0200
    Re: [PATCH v2 05/13] sched: Enable SD_BALANCE_WAKE for asymmetric  capacity systems Morten Rasmussen <morten.rasmussen@arm.com> - 2016-07-11 13:10 +0200
      Re: [PATCH v2 05/13] sched: Enable SD_BALANCE_WAKE for asymmetric  capacity systems Peter Zijlstra <peterz@infradead.org> - 2016-07-11 13:30 +0200
        Re: [PATCH v2 05/13] sched: Enable SD_BALANCE_WAKE for asymmetric  capacity systems Morten Rasmussen <morten.rasmussen@arm.com> - 2016-07-12 16:30 +0200

csiph-web