lkml.org 
[lkml]   [2018]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [RFC/RFT] [PATCH 05/10] cpufreq: intel_pstate: HWP boost performance on IO Wake
From
Date
On Wed, 2018-05-16 at 09:37 +0200, Peter Zijlstra wrote:
> On Tue, May 15, 2018 at 09:49:06PM -0700, Srinivas Pandruvada wrote:

[...]

> >
@@ -258,6 +261,8 @@ struct cpudata {
> > s16 epp_saved;
> > u64 hwp_req_cached;
> > call_single_data_t csd;
> > + bool hwp_boost_active;
> > + u64 last_io_update;
>
> This structure has abysmal layout; you should look at that.
> Also, mandatory complaint about using _Bool in composites.
>
I will take care about this in next version.

[...]

> > +/* Default: This will roughly around P1 on SKX */
> > +#define BOOST_PSTATE_THRESHOLD (SCHED_CAPACITY_SCALE / 2)
>
> Yuck.. why the need to hardcode this? Can't you simply read the P1
> value
> for the part at hand?
Done later in the series. So need to reorder.

[..]
>
+ if (cpu->iowait_boost) {
> > + cpu->hwp_boost_active = true;
> > + if (smp_processor_id() == cpu->cpu)
> > + intel_pstate_hwp_boost_up(cpu);
> > + else
> > + smp_call_function_single_async(cpu->cpu,
> > &cpu->csd);
> > + }
> > }
>
> Hurmph, this looks like you're starting to duplicate the schedutil
> iowait logic. Why didn't you copy the gradual boosting thing?
I tried what we implemented in intel_pstate in legacy mode, which gave
the best performance for servers (ramp up faster and slow ramp down).
This caused regression on some workloads, as each time we can call
HWP_REQUEST, we spend 1200+ cycles in issuing MSR. So keeping it at max
for timeout. Even keeping at P1 didn't help in power numbers.

\
 
 \ /
  Last update: 2018-05-16 19:55    [W:0.077 / U:0.936 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site