Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1641039imm; Wed, 16 May 2018 00:30:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoUbJo+E4Q/dQ7LQTsTqJx4WSZUMK8J5BDkXXMRBUVwo/YMwWvyDZQgyvfEmB2RJ6IQ40D3 X-Received: by 2002:a17:902:70c4:: with SMTP id l4-v6mr18075360plt.174.1526455823845; Wed, 16 May 2018 00:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526455823; cv=none; d=google.com; s=arc-20160816; b=C8gAALPP8NyG0qFTo+q7koFD7PGZbWyCjKo8UkKdaHHovz5ufc39D4vXk3S8lUmJ2q P0ewZSthukNZq4l8hTdAXcSOUDupKqXIbaF2bOSBzRHP2/9UG2CeNSXZGOduDXTxBbxI HhKoKTvrPml23hgNK0MZ15lO9IG8Lx0p5CyT265j7IZG4D4kKNIt5UuGwJmrbTAiga9a iHnO140NBifoDXVS9iGG1XXBAAikLNipWrUgK1R18viZW2VE+g7Jz7sIEgrnAYJpbjx/ wB+j4gGI/9EIyi+T0nwNX/xbNu1P2nAB6WsoZdzrVrGLiImVd5gNwaQJv3pdEjf/1NRf Siug== 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:dkim-signature:arc-authentication-results; bh=4dzZWiZRwTGapPI/8b4wYPE3+md8nG/ClyDv2z5qGWA=; b=al2bRNKLZz5aCHpUeKPjOFgtlUG0sC/m1NczJY7gjO5JAVmO6y++hcSSNsRw4B8e6g +a7CJDLC1TJNsY2bTdl3Im76s05GmSNvQAFGwadQPZjhgBuaOM1vGxol/W75rW8UMIU5 58OFfdYdtb27q+qikqPZjUiULTakAbdACGl1BSSoC8M3qSQT8PD4J+vBnnA1lT+5ZS0f 95Oul07EfPRJo87jCl8OHfhm1iD+2ttGVVY8ia//bgIHvj9giLWuE0jpQYtgR4HXEHlq cucKdWFzMuHFh4/ZSAzc3wggmWxW3e4howud/F8zLXFiFPqjRKPvws0NJj4SN+L+Y0z7 lbFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=bccnMCIq; 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 ay5-v6si1867784plb.459.2018.05.16.00.30.07; Wed, 16 May 2018 00:30:23 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=bccnMCIq; 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 S1751449AbeEPH36 (ORCPT + 99 others); Wed, 16 May 2018 03:29:58 -0400 Received: from merlin.infradead.org ([205.233.59.134]:35174 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbeEPH35 (ORCPT ); Wed, 16 May 2018 03:29:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4dzZWiZRwTGapPI/8b4wYPE3+md8nG/ClyDv2z5qGWA=; b=bccnMCIqoRivhVEMZuJpRZa2K FCwVPDkcODi5Tbj5OxoFdKmqEqFFrU7ct5echc+Eym4SnXdwAOVNyZ24JtKzmfJ4KdolhMlJUd8Pc qYg4BfiFduOr5A4uSe7649jTeZs0wud8XEN/U72lxEWCcP6n1dY8nWF2KMlJ7uv1FsHLqf4hJraXx +2RQSNTGz9hAELkLdTFK8+Dnour0IoATdxc836DeIbh1xcexp5PEa/IMSq+I5soAc6Us28iX4yh1E AjLWRsBBRrJLdWCqMaW9sOaPIupjhRGPeTzfTzTkgk2Tf5FSyTbv/UP9uyYm64WzSVeEiUvzLTkGW axQuhm3ow==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIqsN-0001Qk-JZ; Wed, 16 May 2018 07:29:31 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 232E52029F1C1; Wed, 16 May 2018 09:29:29 +0200 (CEST) Date: Wed, 16 May 2018 09:29:29 +0200 From: Peter Zijlstra To: Srinivas Pandruvada Cc: tglx@linutronix.de, mingo@redhat.com, bp@suse.de, lenb@kernel.org, rjw@rjwysocki.net, mgorman@techsingularity.net, x86@kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org, juri.lelli@arm.com, linux-kernel@vger.kernel.org Subject: Re: [RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting Message-ID: <20180516072929.GN12235@hirez.programming.kicks-ass.net> References: <20180516044911.28797-1-srinivas.pandruvada@linux.intel.com> <20180516044911.28797-3-srinivas.pandruvada@linux.intel.com> <20180516071640.GU12217@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180516071640.GU12217@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 16, 2018 at 09:16:40AM +0200, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 09:49:03PM -0700, Srinivas Pandruvada wrote: > > intel_pstate has two operating modes: active and passive. In "active" > > mode, the in-built scaling governor is used and in "passive" mode, > > the driver can be used with any governor like "schedutil". In "active" > > mode the utilization values from schedutil is not used and there is > > a requirement from high performance computing use cases, not to read > > any APERF/MPERF MSRs. In this case no need to use CPU cycles for > > frequency invariant accounting by reading APERF/MPERF MSRs. > > With this change frequency invariant account is only enabled in > > "passive" mode. > > WTH is active/passive? Is passive when we select performance governor? Bah, I cannot read it seems. active is when we use the intel_pstate governor and passive is when we use schedutil and only use intel_pstate as a driver. > Also; you have to explain why using APERF/MPERF is bad in that case. Why > do they care if we read those MSRs during the tick? That still stands.. this needs to be properly explained.