From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757594AbcILWTu (ORCPT ); Mon, 12 Sep 2016 18:19:50 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:58419 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754928AbcILWTs (ORCPT ); Mon, 12 Sep 2016 18:19:48 -0400 From: "Rafael J. Wysocki" To: Peter Zijlstra , Steve Muckle Cc: 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 Date: Tue, 13 Sep 2016 00:25:54 +0200 Message-ID: <10626645.IplgtjqW4B@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.8.0-rc2+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160831143437.GW10121@twins.programming.kicks-ass.net> References: <1472236848-17038-1-git-send-email-smuckle@linaro.org> <2411837.FJm8ec21FH@vostro.rjw.lan> <20160831143437.GW10121@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, August 31, 2016 04:34:37 PM Peter Zijlstra wrote: > 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 OK, thanks! Applied.