Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4376334imm; Tue, 11 Sep 2018 10:55:08 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdav0hlGrEzCHV5YpQsHq0q7+Od2O/aBWOff7jo262qXVx1I6EpOkDvvPAMNwP3bkQwR2s4S X-Received: by 2002:a63:6746:: with SMTP id b67-v6mr29614314pgc.330.1536688508411; Tue, 11 Sep 2018 10:55:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536688508; cv=none; d=google.com; s=arc-20160816; b=yoIAut0jKyUZwZHppVQPkeemjFaCqW9J7PWNu6OmGv3fsiiYHgngwz/WtUIIsz9d+T Ggv843jbQwlLQg1bE1nZDuimtHcEIgnqQVcdspH9uu4xwaLSw4CbTRs8GB5SdjwNR2V8 Ll75QHHfziJFYtP1tHZvix824GaVJEDtbDirg+UhZBsJc4hmWGeCM/fXa2crI61wst2d 9rIdwgvCZfTiPmti3o0Qf3Wb0rn51lxNBH6ee8ui0P6H0m6CKglY6TNj9t+4b+RLkiHW GB+5Nf2+sh2Lxx2IUR/itK7EYlEWMA6WDGXaaOvDH567xJJaUvo0HkKko0266meoJFiI iLEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=VwjTyxnuBzccidmihYGkhUH2QS5S8zgVifrqE8Dg2es=; b=QqwwtML8x1jE28aRSFN95h96wWZ7OT5ahRdqwEi+gYa+gYR5vtWqm4fLZ1suimU6GJ s179Fb8wz8V8pfxQuZhIVRFfxKViXm6ShJa1ypadDw3oPISHnmU7VDn2cZJT72DeMHMA G1mB7SAXRNXMsg999oN6lJM4bj7X9sMmR1mnDSHYVja4YV9yOakmSWZBSwDwT/fRuXpz 4GW6tpAVdAZhd14/UyjfmcLgiA3slYErx7EvP1bm1eUj1vC/1mh48t0HlXhzZpGYzzdL 5sfbGVbM17B7aJuDrc3s4pIJNJz3ff/jGjjpXDS/1REyhUoxy9Ay3r0x1Gsbtz8jJB2N rZsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=doa6zKpn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t13-v6si20638639pgl.461.2018.09.11.10.54.50; Tue, 11 Sep 2018 10:55:08 -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=pass header.i=@riseup.net header.s=squak header.b=doa6zKpn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728188AbeIKWyz (ORCPT + 99 others); Tue, 11 Sep 2018 18:54:55 -0400 Received: from mx1.riseup.net ([198.252.153.129]:57006 "EHLO mx1.riseup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726782AbeIKWyy (ORCPT ); Tue, 11 Sep 2018 18:54:54 -0400 Received: from piha.riseup.net (piha-pn.riseup.net [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id B5F831A097F; Tue, 11 Sep 2018 10:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1536688469; bh=93byFT7Ef5DOIpoUni+UlCdxVE/pXwXWHXg/C3cI0dY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=doa6zKpnX/DyuzIVNJtiWX6XwjrzwMU3loZPprwnXIdTht+1V+TvP1JlbVSkvqJhC EF2aqOesPCvRTnL1Cjqzl2jAWWV0zo2Tfdj4bTajQNSNW1QbZR/ZLAPG6i2vcyIkVB wAe5X13RliDjTk3yLl3A9MtKdAD44hwiYBgwZJd4= X-Riseup-User-ID: ABEFF1DB06A6F8CA728205A75CB722FFD56136513F50D304E8126F67C211FCA0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by piha.riseup.net with ESMTPSA id 9FDDC4CC61; Tue, 11 Sep 2018 10:54:27 -0700 (PDT) From: Francisco Jerez To: "Rafael J. Wysocki" Cc: Srinivas Pandruvada , Eero Tamminen , lenb@kernel.org, viresh.kumar@linaro.org, mgorman@techsingularity.net, ggherdovich@suse.cz, peterz@infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq: intel_pstate: Optimize IO boost in non HWP mode In-Reply-To: <23293649.J1qzPCXian@aspire.rjw.lan> References: <20180831172851.79812-1-srinivas.pandruvada@linux.intel.com> <8c56f28c2cc11de37fa3517348559eb040894702.camel@linux.intel.com> <87in3j9s07.fsf@riseup.net> <23293649.J1qzPCXian@aspire.rjw.lan> Date: Tue, 11 Sep 2018 10:35:15 -0700 Message-ID: <87in3c7x9o.fsf@riseup.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable "Rafael J. Wysocki" writes: > On Thursday, September 6, 2018 6:20:08 AM CEST Francisco Jerez wrote: >>=20 >> --=3D=3D-=3D-=3D >> Content-Type: multipart/mixed; boundary=3D"=3D-=3D-=3D" >>=20 >> --=3D-=3D-=3D >> Content-Type: text/plain; charset=3Dutf-8 >> Content-Disposition: inline >> Content-Transfer-Encoding: quoted-printable >>=20 >> Srinivas Pandruvada writes: >>=20 >> > [...] >> > >> >> > >=3D20 >> >> > > This patch causes a number of statistically significant >> >> > > regressions >> >> > > (with significance of 1%) on the two systems I've tested it >> >> > > on. On >> >> > > my >> >> >=3D20 >> >> > Sure. These patches are targeted to Atom clients where some of >> >> > these >> >> > server like workload may have some minor regression on few watts >> >> > TDP >> >> > parts. >> >>=3D20 >> >> Neither the 36% regression of fs-mark, the 21% regression of sqlite, >> >> nor >> >> the 10% regression of warsaw qualify as small. And most of the test >> >> cases on the list of regressions aren't exclusively server-like, if >> >> at >> >> all. Warsaw, gtkperf, jxrendermark and lightsmark are all graphics >> >> benchmarks -- Latency is as important if not more for interactive >> >> workloads than it is for server workloads. In the case of a conflict >> >> like the one we're dealing with right now between optimizing for >> >> throughput (e.g. for the maximum number of requests per second) and >> >> optimizing for latency (e.g. for the minimum request duration), you >> >> are >> >> more likely to be concerned about the former than about the latter in >> >> a >> >> server setup. >> > >> > Eero, >> > Please add your test results here. >> > >> > No matter which algorithm you do, there will be variations. So you have >> > to look at the platforms which you are targeting. For this platform=3D= 20 >> > number one item is use of less turbo and hope you know why? >>=20 >> Unfortunately the current controller uses turbo frequently on Atoms for >> TDP-limited graphics workloads regardless of IOWAIT boosting. IOWAIT >> boosting simply exacerbated the pre-existing energy efficiency problem. > > My current understanding of the issue at hand is that using IOWAIT boosti= ng > on Atoms is a regression relative to the previous behavior. Not universally. IOWAIT boosting helps under roughly the same conditions on Atom as it does on big core, so applying this patch will necessarily cause regressions too (see my reply from Sep. 3 for some numbers), and won't completely restore the previous behavior since it simply decreases the degree of IOWAIT boosting applied without being able to avoid it (c.f. the series I'm working on that does something similar to IOWAIT boosting when it's able to determine it's actually CPU-bound, which prevents energy inefficient behavior for non-CPU-bound workloads that don't benefit from a higher CPU clock frequency anyway). > That is what Srinivas is trying to address here AFAICS. > > Now, you seem to be saying that the overall behavior is suboptimal and the > IOWAIT boosting doesn't matter that much, I was just saying that IOWAIT boosting is less than half of the energy efficiency problem, and this patch only partially addresses that half of the problem. > so some deeper changes are needed anyway. That may be the case, but > if there is a meaningful regression, we should first get back to the > point where it is not present and then to take care of the more > general problems. > > So, I'd like to understand how much of a problem the IOWAIT boosting real= ly is > in the first place. If it is significant enough, let's address it first,= this > way or another, and move on to the other problems subsequently. > See the Unigine and Gfxbench numbers I provided in my reply from Sep. 3 to get an idea of the magnitude of the IOWAIT boosting problem vs. the overall energy efficiency problem addressed by my series. > Thanks, > Rafael --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQST8OekYz69PM20/4aDmTidfVK/WwUCW5f80wAKCRCDmTidfVK/ W8S4AP0cnxEpgO73ANrB1TmDP62h0lKLBOPwKFBvHNZfawNlRAD+KZvQAzXBlHCI bMismxrY5c/lDO5IqBHRQ7fssIcRLkk= =HDCK -----END PGP SIGNATURE----- --==-=-=--