From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935196AbcHaOeu (ORCPT ); Wed, 31 Aug 2016 10:34:50 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45778 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933835AbcHaOet (ORCPT ); Wed, 31 Aug 2016 10:34:49 -0400 Date: Wed, 31 Aug 2016 16:34:37 +0200 From: Peter Zijlstra To: "Rafael J. Wysocki" Cc: Steve Muckle , Ingo Molnar , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Vincent Guittot , Morten Rasmussen , Dietmar Eggemann , Juri Lelli , Patrick Bellasi , Steve Muckle Subject: Re: [PATCH 1/2] sched: cpufreq: ignore SMT when determining max cpu capacity Message-ID: <20160831143437.GW10121@twins.programming.kicks-ass.net> References: <1472236848-17038-1-git-send-email-smuckle@linaro.org> <1472236848-17038-2-git-send-email-smuckle@linaro.org> <2411837.FJm8ec21FH@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2411837.FJm8ec21FH@vostro.rjw.lan> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 31, 2016 at 03:27:30AM +0200, Rafael J. Wysocki wrote: > On Friday, August 26, 2016 11:40:47 AM Steve Muckle wrote: > > PELT does not consider SMT when scaling its utilization values via > > arch_scale_cpu_capacity(). The value in rq->cpu_capacity_orig does > > take SMT into consideration though and therefore may be smaller than > > the utilization reported by PELT. > > > > On an Intel i7-3630QM for example rq->cpu_capacity_orig is 589 but > > util_avg scales up to 1024. This means that a 50% utilized CPU will show > > up in schedutil as ~86% busy. > > > > Fix this by using the same CPU scaling value in schedutil as that which > > is used by PELT. > > > > Signed-off-by: Steve Muckle > > This is fine by me. > > Peter, any objections? No, looks good. Thanks