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


Groups > linux.kernel > #1480624 > unrolled thread

Re: [PATCH v3 1/8] sched, x86: Add SD_ASYM_PACKING flags to x86 cpu topology for ITMT

Started byThomas Gleixner <tglx@linutronix.de>
First post2016-09-10 15:20 +0200
Last post2016-09-19 18:10 +0200
Articles 5 — 4 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 v3 1/8] sched, x86: Add SD_ASYM_PACKING flags to x86 cpu  topology for ITMT Thomas Gleixner <tglx@linutronix.de> - 2016-09-10 15:20 +0200
    Re: [PATCH v3 1/8] sched, x86: Add SD_ASYM_PACKING flags to x86 cpu  topology for ITMT Tim Chen <tim.c.chen@linux.intel.com> - 2016-09-12 23:00 +0200
      Re: [PATCH v3 1/8] sched, x86: Add SD_ASYM_PACKING flags to x86 cpu  topology for ITMT Peter Zijlstra <peterz@infradead.org> - 2016-09-13 09:30 +0200
        Re: [PATCH v3 1/8] sched, x86: Add SD_ASYM_PACKING flags to x86 cpu  topology for ITMT Jiri Olsa <jolsa@redhat.com> - 2016-09-19 11:20 +0200
          Re: [PATCH v3 1/8] sched, x86: Add SD_ASYM_PACKING flags to x86 cpu  topology for ITMT Tim Chen <tim.c.chen@linux.intel.com> - 2016-09-19 18:10 +0200

#1480624 — Re: [PATCH v3 1/8] sched, x86: Add SD_ASYM_PACKING flags to x86 cpu topology for ITMT

FromThomas Gleixner <tglx@linutronix.de>
Date2016-09-10 15:20 +0200
SubjectRe: [PATCH v3 1/8] sched, x86: Add SD_ASYM_PACKING flags to x86 cpu topology for ITMT
Message-ID<sfQml-H3-7@gated-at.bofh.it>
On Thu, 8 Sep 2016, Srinivas Pandruvada wrote:
> From: Tim Chen <tim.c.chen@linux.intel.com>
> 
> We uses ASYM_PACKING feature in the scheduler to move tasks to more
> capable cpus that can be boosted to higher frequency. This is enabled by
> Intel Turbo Boost Max Technology 3.0 (ITMT).  We mark the sched domain
> topology level with SD_ASYM_PACKING flag for such systems to indicate
> scheduler can use the ASYM_PACKING feature to move load to the
> more capable cpus.

Sigh. This changelog does not tell anything about the nature of the patch,
the rationale for it etc. It's just a meaningless blurb.


> +unsigned int __read_mostly sysctl_sched_itmt_enabled;
> +
>  static inline void smpboot_setup_warm_reset_vector(unsigned long start_eip)
>  {
>  	unsigned long flags;
> @@ -471,31 +473,57 @@ static bool match_die(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o)
>  	return false;
>  }
>  
> -static struct sched_domain_topology_level numa_inside_package_topology[] = {
> +#ifdef CONFIG_SCHED_ITMT
> +static int x86_core_flags(void)
> +{
> +	int flags = cpu_core_flags();
> +
> +	if (sysctl_sched_itmt_enabled)
> +		flags |= SD_ASYM_PACKING;
> +
> +	return flags;
> +}
> +
> +static int x86_smt_flags(void)
> +{
> +	int flags = cpu_smt_flags();
> +
> +	if (sysctl_sched_itmt_enabled)
> +		flags |= SD_ASYM_PACKING;
> +
> +	return flags;
> +}
> +#else
> +#define x86_core_flags cpu_core_flags
> +#define x86_smt_flags cpu_smt_flags
> +#endif

No. We first rework the code so that the IMT stuff can be added in a later
patch easily.

Thanks,

	tglx

[toc] | [next] | [standalone]


#1481958

FromTim Chen <tim.c.chen@linux.intel.com>
Date2016-09-12 23:00 +0200
Message-ID<sgGuB-b1-17@gated-at.bofh.it>
In reply to#1480624
On Sat, 2016-09-10 at 15:10 +0200, Thomas Gleixner wrote:
> On Thu, 8 Sep 2016, Srinivas Pandruvada wrote:
> > 
> > From: Tim Chen <tim.c.chen@linux.intel.com>
> > 
> > We uses ASYM_PACKING feature in the scheduler to move tasks to more
> > capable cpus that can be boosted to higher frequency. This is enabled by
> > Intel Turbo Boost Max Technology 3.0 (ITMT).  We mark the sched domain
> > topology level with SD_ASYM_PACKING flag for such systems to indicate
> > scheduler can use the ASYM_PACKING feature to move load to the
> > more capable cpus.
> Sigh. This changelog does not tell anything about the nature of the patch,
> the rationale for it etc. It's just a meaningless blurb.

Okay, I can add more details about ITMT.  Will also be clearer if
the ITMT patch (patch 5) comes before this one.



> > +}
> > +#else
> > +#define x86_core_flags cpu_core_flags
> > +#define x86_smt_flags cpu_smt_flags
> > +#endif
> No. We first rework the code so that the IMT stuff can be added in a later
> patch easily.

I'll move this patch to come after current patch 5.

Thanks.

Tim

[toc] | [prev] | [next] | [standalone]


#1482199

FromPeter Zijlstra <peterz@infradead.org>
Date2016-09-13 09:30 +0200
Message-ID<sgQkh-77I-9@gated-at.bofh.it>
In reply to#1481958
On Mon, Sep 12, 2016 at 01:50:15PM -0700, Tim Chen wrote:
> > No. We first rework the code so that the IMT stuff can be added in a later
> > patch easily.
> 
> I'll move this patch to come after current patch 5.

Split the patch, one doing the topo cleanup, one adding the
x86_*_flags().

[toc] | [prev] | [next] | [standalone]


#1486282

FromJiri Olsa <jolsa@redhat.com>
Date2016-09-19 11:20 +0200
Message-ID<sj2U2-3y7-17@gated-at.bofh.it>
In reply to#1482199
On Tue, Sep 13, 2016 at 09:26:13AM +0200, Peter Zijlstra wrote:
> On Mon, Sep 12, 2016 at 01:50:15PM -0700, Tim Chen wrote:
> > > No. We first rework the code so that the IMT stuff can be added in a later
> > > patch easily.
> > 
> > I'll move this patch to come after current patch 5.
> 
> Split the patch, one doing the topo cleanup, one adding the
> x86_*_flags().

hi,
could you please CC me on the next version,
I'm interested in that cleanup patch..

thanks a lot,
jirka

[toc] | [prev] | [next] | [standalone]


#1486638

FromTim Chen <tim.c.chen@linux.intel.com>
Date2016-09-19 18:10 +0200
Message-ID<sj9iO-7Bu-27@gated-at.bofh.it>
In reply to#1486282
On Mon, 2016-09-19 at 11:11 +0200, Jiri Olsa wrote:
> On Tue, Sep 13, 2016 at 09:26:13AM +0200, Peter Zijlstra wrote:
> > 
> > On Mon, Sep 12, 2016 at 01:50:15PM -0700, Tim Chen wrote:
> > > 
> > > > 
> > > > No. We first rework the code so that the IMT stuff can be added in a later
> > > > patch easily.
> > > I'll move this patch to come after current patch 5.
> > Split the patch, one doing the topo cleanup, one adding the
> > x86_*_flags().
> hi,
> could you please CC me on the next version,
> I'm interested in that cleanup patch..

Sure. Will do.

Tim

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web