Received: by 10.213.65.68 with SMTP id h4csp871979imn; Thu, 22 Mar 2018 10:22:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELupSmA3F/2egAAM+wsEXGL+84l1BON8DbcfmPG7jlqseSFBxsH2ur1x4TWl9BsXmWJfMjd7 X-Received: by 10.98.220.86 with SMTP id t83mr9899758pfg.60.1521739374947; Thu, 22 Mar 2018 10:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521739374; cv=none; d=google.com; s=arc-20160816; b=hVvhXiw+kD+2WXnEiB+8Lv/8CQ6eGbusNw8qQ6oxXYFwJNNb4uxaW+pPNTYU00fFQN pvfYc/TDzYNGgpqCxZ0NIMbZa50PUJZ074KxHEFgxG3mjAVPInqqwfVVA74hyE3uVPw5 H/x687OaZSVCmpiW+6ulErH0R0JBWUuYF87dqPUzhq+3Bpi/wx1Jo00DHzLOhyb1RsJo QZ+zyRmALH3FIPRrYVrjKag2/30CnXcOqpyGhztUJaZrXm+VMHNiJrrwdUP9rqtesGHu 9Fwhq5aDVlJwjN0gnn/Do8Sd6eTuEFZwNu7MF6MTYhOd39dXp9AUSI6bT8UnD/SBvorx O9Uw== 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=CTK106wQi8dJUVZbueQdma2J8UwccldKYMq1I7hfFcs=; b=v81pqMAjnSTrUWX0Eb3ZOqGygW5VhN7NiveNJzru+ZcXgNPukcn/JfCeP9u+cgRLOm sbVy97n5PCY6oJO/X4hkP/21mRLMQDa1CakDcFMWAosy9fdRUsLsLIXAHVggWgNcsc0p iIanjBin48Jjh4rDiSHI3OpvHeoKmnVi02WwSQYbzES1lZOAt8cHa44cVFcjdBoEWeVL oBiVDyj0vqshbSxz92ykz5Dtrdx/CT9r8/5/21wghK9XjowwSQhk98R5n7boA3+PIpdM 17HMK8TGhg6XIChDvPZRNxBLvgcQVwHgbMwlt7J/PpDePx1CkgfY1JQR7YlvB5H7NjHk BIsg== 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 o3si3175183pgv.773.2018.03.22.10.22.40; Thu, 22 Mar 2018 10:22:54 -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 S1752275AbeCVRVG (ORCPT + 99 others); Thu, 22 Mar 2018 13:21:06 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:41271 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751758AbeCVRVE (ORCPT ); Thu, 22 Mar 2018 13:21:04 -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 e2991efdec332cb4; Thu, 22 Mar 2018 18:21:02 +0100 From: "Rafael J. Wysocki" To: Doug Smythies Cc: "'Rafael J. Wysocki'" , 'Thomas Ilsche' , 'Linux PM' , 'Peter Zijlstra' , 'Frederic Weisbecker' , 'Thomas Gleixner' , 'Paul McKenney' , 'Rik van Riel' , 'Aubrey Li' , 'Mike Galbraith' , 'LKML' Subject: Re: [RFT][PATCH v7 5/8] cpuidle: Return nohz hint from cpuidle_select() Date: Thu, 22 Mar 2018 18:21:28 +0100 Message-ID: <3258417.cAAax18vkN@aspire.rjw.lan> In-Reply-To: <000401d3c1f4$5043adb0$f0cb0910$@net> References: <2390019.oHdSGtR3EE@aspire.rjw.lan> <000401d3c1f4$5043adb0$f0cb0910$@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 Thursday, March 22, 2018 4:41:54 PM CET Doug Smythies wrote: > On 2018.03.21 23:25 Doug Smythies wrote: > > On 2018.03.21 15:15 Rafael J. Wysocki wrote: > >> On Wed, Mar 21, 2018 at 6:59 PM, Thomas Ilsche wrote: > >>> On 2018-03-21 15:36, Rafael J. Wysocki wrote: > >>>> > >>>> So please disregard this one entirely and take the v7.2 replacement > >>>> instead of it:https://patchwork.kernel.org/patch/10299429/ > >>>> > >>>> The current versions (including the above) is in the git branch at > >>>> > >>>> git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ > >>>> idle-loop-v7.2 > >>> > >>> With v7.2 (tested on SKL-SP from git) I see similar behavior in idle > >>> as with v5: several cores which just keep the sched tick enabled. > >>> Worse yet, some go only in C1 (not even C1E!?) despite sleeping the > >>> full sched tick. > >>> The resulting power consumption is ~105 W instead of ~ 70 W. > >>> > >>> https://wwwpub.zih.tu-dresden.de/~tilsche/powernightmares/v7_2_skl_sp_idle.png > >>> > >>> I have briefly ran v7 and I believe it was also affected. > > I am not seeing any issues at all with V7. > > >> > >> Then it looks like menu_select() stubbornly thinks that the idle > >> duration will be within the tick boundary on those cores. > >> > >> That may be because the bumping up of the correction factor in > >> menu_reflect() is too conservative or it may be necessary to do > >> something radical to measured_us in menu_update() in case of a tick > >> wakeup combined with a large next_timer_us value. > >> > >> For starters, please see if the attached patch (on top of the > >> idle-loop-v7.2 git branch) changes this behavior in any way. > > > > O.K. I am seeing some weirdness. > > On my system with both V7.2 and V7.2 plus this patch, I observe > > A spike in Idle State 1 residency every 34+ minutes. And slightly > > higher average idle power than before. > > (I might not have done V7 idle tests long enough). > > I re-did the idle test on V7, and for longer. > It is great. > See line added to the idle graph for V7.2+: > > http://fast.smythies.com/rjw_v72p_v7_idle.png > > > > > It can be seen in the frequency sweep I did earlier today, with V7.2: > > > > http://fast.smythies.com/rjw_freq_sweep_72_combined.png > > > > Despite the note on the graph that says it might be real, I don't think > > it is (I forgot to delete the note). > > > > With V7.2+ sometimes the event occurs at 17 minute intervals. > > Here is a idle graph (for reference: we have seen idle package power > > pretty steady at ~3.7 watts before). > > Now shown on the new graph. Link above. Thanks for the data! I will send another update of patch [5/8] shortly which is closer to the original v7 of it than the v7.[1-2].