From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rik van Riel Subject: Re: [PATCH] cpuidle: poll_state: Avoid invoking local_clock() too often Date: Tue, 27 Mar 2018 18:00:32 -0400 Message-ID: <1522188032.6308.69.camel@surriel.com> References: <2095821.OCbkRpinqI@aspire.rjw.lan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-XJsuFMo3JHh7LT5idPsA" Return-path: In-Reply-To: <2095821.OCbkRpinqI@aspire.rjw.lan> Sender: linux-kernel-owner@vger.kernel.org To: "Rafael J. Wysocki" , Linux PM Cc: Peter Zijlstra , Frederic Weisbecker , Thomas Gleixner , Paul McKenney , Thomas Ilsche , Doug Smythies , Aubrey Li , Mike Galbraith , LKML List-Id: linux-pm@vger.kernel.org --=-XJsuFMo3JHh7LT5idPsA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2018-03-27 at 23:58 +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki >=20 > Rik reports that he sees an increase in CPU use in one benchmark > due to commit 612f1a22f067 "cpuidle: poll_state: Add time limit to > poll_idle()" that caused poll_idle() to call local_clock() in every > iteration of the loop. Utilization increase generally means more > non-idle time with respect to total CPU time (on the average) which > implies reduced CPU frequency. >=20 > Doug reports that limiting the rate of local_clock() invocations > in there causes much less power to be drawn during a CPU-intensive > parallel workload (with idle states 1 and 2 disabled to enforce more > state 0 residency). >=20 > These two reports together suggest that executing local_clock() on > multiple CPUs in parallel at a high rate may cause chips to get hot > and trigger thermal/power limits on them to kick in, so reduce the > rate of local_clock() invocations in poll_idle() to avoid that issue. >=20 > Fixes: 612f1a22f067 "cpuidle: poll_state: Add time limit to > poll_idle()" > Reported-by: Rik van Riel > Reported-by: Doug Smythies > Signed-off-by: Rafael J. Wysocki Thanks Rafael! Tested-by: Rik van Riel Reviewed-by: Rik van Riel --=20 All Rights Reversed. --=-XJsuFMo3JHh7LT5idPsA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAlq6vwAACgkQznnekoTE 3oMnNQf/S5PPW9YhHCQoQxSic+HG8bYUz4NH5Drdcl4fOGtDJX3mMUXnmhcE/0hO Lkiq50x/nlO85fNKDF4xSQQ8ZIeO2KDKe0aGi8MXrrjJ2vfwtS/O9A8NObpZSKXL pnzTek52GXi9vIenV+asBNl8HtDW/3mSPf5i17YtZ+57IoXlNInKYN4LSfW6JJWq yg/I5QG6dJapU9OXr3vGAw1hIL61hJAxmMuDASu6rnhouhQlMCFuPFwR8lGwCIJD EHK3ZIW43C9OjnorhfGBPik3eRIu7qbrmrFJA5VyLWEHcTE0RMaX2vsRLH5ZjUcl o13gbrkidSBG7kL5g62rPRQaXoWlPg== =2kTS -----END PGP SIGNATURE----- --=-XJsuFMo3JHh7LT5idPsA--