Received: by 10.213.65.16 with SMTP id m16csp251140imf; Mon, 12 Mar 2018 02:29:28 -0700 (PDT) X-Google-Smtp-Source: AG47ELviNkuMsfhR0SPf1EV6DcEK6KYHbScMqeN256l+4OZ5TaKfvqQ7DXA7DKXsHLGDvWxxCt3W X-Received: by 2002:a17:902:82c2:: with SMTP id u2-v6mr3708842plz.401.1520846968914; Mon, 12 Mar 2018 02:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520846968; cv=none; d=google.com; s=arc-20160816; b=A1990S78PvbB9Cmk1IgFmpB51Da6l11QcV7bcbH4ujZ1vKN45CSUeM3YxYuHOPjk4/ 8jqN8O3N0YmewKkTzXYBCZbnNwCWsbim0jExOlPMkDjm3juFx/oc0bHLxPkY0u/eNkWc fXUTHrZOIET620zFBTN2MRBg2TxFYkwIQUF+WLOFEdlqK2aDQ3dM0aCrTBcx90Ew98kN hBShIubyGhDtNbCAbFvL+h10JphvHqgNrsVi23CLw6yYkCbCkTEudozJXhSFVcXiv6xR DhtiaBt1gNN1H1zhYvYCFy/+eNKmzI772ed1l9qKx50LyNvq/CqjRoCI/CjQh39PSQsd WKAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=SaoJD78xc0qQV4kYmp687orlINJw9yK0VKMp8kLc/k8=; b=EVPzAnxTlOVCULLdwUPkbkrk6doG2+711UAp85Yn6wFDsVPtaZWFwZICPslEkox2Oa LvhnyXC0YWqSKrW8rtcv2zlmtbSaUo663O0cwh5Ek5EbdiSYgoZPaZNNUP4d6XRnsblx gwMEIurrB+w0o2pEWgZ9u3ouqKzAe3nlOPIuuiGhU/q+nkLMWsHC7jzJl+LnbQtxHf/i 70moIg3WpOyJeY8i/wR4oJOFzcMmQBv4RrqZmQAE0M5dzDxkFgPjZ8Uh9DsJOgHSd07v EcyLqYMhWvJPRrJ9ZtSXgbhY21dP2k8pK+M32McPI+WgOGaDdE/W3TdHJRC43Ul+6PZe itCQ== 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 e190si5439340pfe.203.2018.03.12.02.29.14; Mon, 12 Mar 2018 02:29:28 -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; 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 S1752389AbeCLJ2C (ORCPT + 99 others); Mon, 12 Mar 2018 05:28:02 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:51052 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752332AbeCLJ16 (ORCPT ); Mon, 12 Mar 2018 05:27:58 -0400 Received: from 79.184.254.228.ipv4.supernova.orange.pl (79.184.254.228) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id bf4cfbf6e2bac3a9; Mon, 12 Mar 2018 10:27:57 +0100 From: "Rafael J. Wysocki" To: Doug Smythies Cc: 'Rik van Riel' , 'Mike Galbraith' , 'Thomas Gleixner' , 'Paul McKenney' , 'Thomas Ilsche' , 'Frederic Weisbecker' , 'Linux PM' , 'Aubrey Li' , 'LKML' , 'Peter Zijlstra' Subject: Re: [RFC/RFT][PATCH v3 0/6] sched/cpuidle: Idle loop rework Date: Mon, 12 Mar 2018 10:28:35 +0100 Message-ID: <6289621.2bafQveClD@aspire.rjw.lan> In-Reply-To: <000c01d3b98d$016eeb10$044cc130$@net> References: <2450532.XN8DODrtDf@aspire.rjw.lan> <001801d3b90c$99232600$cb697200$@net> <000c01d3b98d$016eeb10$044cc130$@net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, March 12, 2018 12:02:14 AM CET Doug Smythies wrote: > On 2018.03.11 08:52 Doug Smythies wrote: > > On 2018.03.11 03:22 Rafael J. Wysocki wrote: > >> On Sunday, March 11, 2018 8:43:02 AM CET Doug Smythies wrote: > >>> On 2018.03.10 15:55 Rafael J. Wysocki wrote: > >>>> On Saturday, March 10, 2018 5:07:36 PM CET Doug Smythies wrote: > >>>>> On 2018.03.10 01:00 Rafael J. Wysocki wrote: > >>> > >>> ... [snip] ... > >>> > >>>> The information that they often spend more time than a tick > >>>> period in state 0 in one go *is* relevant, though. > >>>> > >>>> > >>>> That issue can be dealt with in a couple of ways and the patch below is a > >>>> rather straightforward attempt to do that. The idea, basically, is to discard > >>>> the result of governor prediction if the tick has been stopped alread and > >>>> the predicted idle duration is within the tick range. > >>> > >>>> Please try it on top of the v3 and tell me if you see an improvement. > >>> > >>> It seems pretty good so far. > >>> See a new line added to the previous graph, "rjwv3plus". > >>> > >>> http://fast.smythies.com/rjwv3plus_100.png > >> > >> OK, cool! > >> > >> Below is a respin of the last patch which also prevents shallow states from > >> being chosen due to interactivity_req when the tick is stopped. > >> > >> You may also add a poll_idle() fix I've just posted: > >> > >> https://patchwork.kernel.org/patch/10274595/ > >> > >> on top of this. It makes quite a bit of a difference for me. :-) > > > > I will add and test, but I already know from testing previous versions > > of this patch, from Rik van Riel and myself, that the results will be > > awesome. > > And the results are indeed awesome. > > A four hour 100% load on one CPU test was run, with trace, however > there is nothing to report, as everything is great. > > The same graph as the last couple of days, with a new line added for > V3 + the respin of patch 7 of 6 + the poll-idle fix, called rjwv3pp, > is here: > > http://fast.smythies.com/rjwv3pp_100.png That looks great, thank you!