Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4890288imb; Thu, 7 Mar 2019 03:04:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxMfX/pPfspeC/Yq6s86C21gQFslCX1dZkL3rG434A0d1mLV8Mya1nOXLydGtkd8Tu5IU2W X-Received: by 2002:a65:64d5:: with SMTP id t21mr10699009pgv.266.1551956644408; Thu, 07 Mar 2019 03:04:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551956644; cv=none; d=google.com; s=arc-20160816; b=tirvet3/nYMOPyiLZTThoTGpNUb/Orp8OCuvJb9hew/tBWAxIly7hZNxILMj2kg91z jJHEm/DIro4nXTUaiKNyMXC4olkxIA36Ksq8MWr//HVoOYECx/7pyoKEws3zhtaH98jz 6X+dxs7+BLvs7KwB71U9zY8AG5Z/9zP/lEtekYu8qS084HvLNa373KE6P/4tq4J2vQx0 2ThsfLFfuo6z7Cg4iVRFCGkHuYjOlaRw4KKKR2jndBo/Vby4yAFEtvobfLHU2R2SZQts Om6PNfo7DovqpySDXWdQzhxZu+Fjch1in46c+jStgnnjXqM2w/LA/0Ep03Y8Xzc9BSX/ SX/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0T/u2t/vf115e2fnsujVPHYPjR27kUpvBqnFkDldC7w=; b=E/42EK+bDRem6oZTbLmQaVxvnqvW/8kqmA+l5sYYnqv1zHBYsYXmo3op+0x28N5Ocp 5zokBsHg8YIZkF4Av0y3Ycqsam1W0w0c8/qIz6BAUl9tJ0qweGTZtbSEQT0Zri9CxwN9 WNZceGJ8fBlP13vAJJIk0/ZSwYkOLe6t4dn419SlV9HUR58o/M1Qgb2pZYSUMZDcpHjr oPFjd0ixMov39QPVmireR1fttBrtvcfiWiozxyY/RyT85hjt9cP6/UNGR3LZsJtK7VZR 6D7Z5bwLJYrEbgiXyUjpCxC+XvkL7SMK91xLVJsCCYgHYg0PmRvzn28XVCezqsJmp7yu 99Sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z88si4146809pfl.65.2019.03.07.03.03.48; Thu, 07 Mar 2019 03:04:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726465AbfCGLDD (ORCPT + 99 others); Thu, 7 Mar 2019 06:03:03 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:43862 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbfCGLDC (ORCPT ); Thu, 7 Mar 2019 06:03:02 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F15E0EBD; Thu, 7 Mar 2019 03:03:01 -0800 (PST) Received: from queper01-lin (queper01-lin.cambridge.arm.com [10.1.195.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 52B823F706; Thu, 7 Mar 2019 03:03:00 -0800 (PST) Date: Thu, 7 Mar 2019 11:02:58 +0000 From: Quentin Perret To: "Rafael J. Wysocki" Cc: Peter Zijlstra , "Rafael J. Wysocki" , Linux PM , LKML , Viresh Kumar , Srinivas Pandruvada , Chen Yu , Gabriele Mazzotta Subject: Re: [RFT][Update][PATCH 2/2] cpufreq: intel_pstate: Update max CPU frequency on global turbo changes Message-ID: <20190307110256.padefvq4e52ly3nm@queper01-lin> References: <9956076.F4luUDm1Dq@aspire.rjw.lan> <20190305104256.7kvedlttuovmptpc@queper01-lin> <2336151.IZk3Z8DVvP@aspire.rjw.lan> <6357319.Iupbu3ldGQ@aspire.rjw.lan> <20190305114406.GV32494@hirez.programming.kicks-ass.net> <20190305120040.y2vmnxrch6kgya3e@queper01-lin> <20190305173746.p32xolcpueudlzwn@queper01-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafael, On Wednesday 06 Mar 2019 at 11:05:47 (+0100), Rafael J. Wysocki wrote: > Please recall that the iowait boosting algo was different to start > with, though: it jumped to the max right away and then backed off. > That turned out to be overly aggressive in general and led to some > undesired "jittery" behavior, which is why it was changed. > > Thus it looks like the platforms on which it still jumps to the max > right away may actually benefit from changing it to more steps. :-) On the energy side of things at least ... ;-) > In turn, the platforms where it takes more than 3 steps for the boost > to get to the max would get a slight performance improvement from this > changes and I'm not sure why that could be bad. For energy possibly ? IIUC this thread: https://patchwork.kernel.org/patch/9735885/ the original intent of the ramp thing for the iowait boost was to reduce power consumption. > Moreover, it didn't depend on the min originally, just on the max and > just because I wanted the number of backoff steps needed to go back > down to zero to be independent of the platform IIRC. The dependency > on the min is sort of artificial here and leads to arbitrary > differences in behavior between different platforms which isn't > particularly fortunate. It's a question of perspective I would say. Right now you can say the behaviour is somewhat coherent across platforms: getting an IOWAIT boost means you'll run twice as fast regardless of your board. With the '128 approach', you may or may not run faster, depending on your set of OPPs. Also on recent big little SoCs, the capacity ratio can be pretty high. You can get little CPUs with 300 of capacity or so. The arbitrary 128 thing is basically gonna go near max freq in one step, although the CPUs actually 20 available OPPs or so. And I guess that's a shame. For these reasons, I feel like it's not completely idiotic to have a platform-dependent starting point, although arguably min_freq might not always be the best choice. > With all of that in mind, I would go right away to making the boost > independent of min and max (the final number of steps to reach the max > is TBD in practice, but 3 looks like a good enough compromise to me). Perhaps the energy model could help find a good starting point, and a good number of steps ? FWIW there should be a slot at OSPM to discuss how sugov could be made smarter using the EM :-). > FWIW, the internal governor in intel_pstate has been changed along > these lines already (the changes is waiting for Linus to pull it ATM). Thanks, Quentin