From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting Date: Fri, 18 May 2018 13:29:19 +0200 Message-ID: <20180518112919.GI12217@hirez.programming.kicks-ass.net> References: <20180516154733.GF12198@hirez.programming.kicks-ass.net> <20180516163105.GP28366@localhost.localdomain> <20180517105907.GC22493@localhost.localdomain> <20180517150418.GF22493@localhost.localdomain> <1526571692.11765.10.camel@linux.intel.com> <20180517161649.GX12217@hirez.programming.kicks-ass.net> <1526575358.11765.14.camel@linux.intel.com> <20180517182803.GY12217@hirez.programming.kicks-ass.net> <20180518105742.GN30654@e110439-lin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20180518105742.GN30654@e110439-lin> Sender: linux-kernel-owner@vger.kernel.org To: Patrick Bellasi Cc: "Rafael J. Wysocki" , Srinivas Pandruvada , Juri Lelli , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Len Brown , "Rafael J. Wysocki" , Mel Gorman , the arch/x86 maintainers , Linux PM , Viresh Kumar , Linux Kernel Mailing List List-Id: linux-pm@vger.kernel.org On Fri, May 18, 2018 at 11:57:42AM +0100, Patrick Bellasi wrote: > Thus, my simple (maybe dumb) questions are: > - why can't we just fold turbo boost frequency into the existing concepts? > - what are the limitations of such a "simple" approach? Perhaps... but does this not further complicate the whole capacity vs util thing we already have in say the misfit patches? And the util_fits_capacity() thing from the EAS ones. The thing is, we either need to dynamically scale the util or the capacity or both. I think for Thermal there are patches out there that drop the capacity. But we'd then have to do the same for turbo/vector and all the other stuff as well. Otherwise we risk things like running at low U with 0% idle and not triggering the tipping point between eas and regular balancing. So either way around we need to know the 'true' max, either to fudge util or to fudge capacity. And I'm not sure we can know in some of these cases :/ And while Vincent's patches might have been inspired by another problem, they do have the effect of always allowing util to go to 1, which is nice for this.