Received: by 10.213.65.68 with SMTP id h4csp873287imn; Thu, 22 Mar 2018 10:24:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELv0Ku8DmbzUa+1ZCB2dEMkEtJPndGi/XCZ5tIhGhYClwU5osEO3CS4LcDNita/5Fd/8PDXX X-Received: by 10.99.169.1 with SMTP id u1mr6206444pge.251.1521739475351; Thu, 22 Mar 2018 10:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521739475; cv=none; d=google.com; s=arc-20160816; b=cu5dOh7bGpL0tEVVc2r0FE4T8fkQ8cD0wNC+9h3MJ4evxszxJ/6VvCtutuuyK/v0fy El7+4OvfRNqL9TZXOa26VAEIvjhc6eWhJhj6oIzYYq3gkSPwHxfZkOiXOcdY3ghecJmd hkhRI8X1u29rZwCgkwgEdLJP3PnIg0zzoF9WELQhWcfAyg/L+c544LwesU4ZzHTt8Vcg oFwhw5CsqlKG3szdZvBBW6rmNg2qiwxUIDzTreBJ/6Su5obmP3PCyEO2POQ9NYLZJwJ1 AA05RzXV6vr6JlyImehSnwJ+XALWqe+ufWn97Mi6X9jiHrn+UddHvXZ7h1J+22S5Yo0k zbFA== 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=hn0x6BkVw4Ww/ZcYF14BVS3viqQHhnmHFtvO3PALyXA=; b=FVs5xBpXKqai/h9g9IJELE0yYBk7daDx3DhOpmG/zFQk57Dw5QLuBqkjFR3aRN3tS9 q0GwnXOjW1GexoJ7Vk3kG4NNOp5QxXjb7uK/8adThv4n0nayczSHwR7GZA+4HOpVImmP fxlu62bjVlDWsWMCX1j8UsuNcIvKP6jwcCuAQv376/08Eb0qBKLtnUrPC5JxejQLf0av gC8k7gVKWvVyDI0d/tCRpKTUFeFH/yIl8RAJaX44Poh8nGJ7j1wsayiLaylAZjaw4w00 h0dQhv9nOHu+XaAWyqxSK/9ut+sVE0JV3OTxmvC6C4KHondlO2M6hnHA4hQoQs3MatLt H/MQ== 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 n7si2598703pfn.30.2018.03.22.10.24.20; Thu, 22 Mar 2018 10:24:35 -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 S1751843AbeCVRXP (ORCPT + 99 others); Thu, 22 Mar 2018 13:23:15 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:46905 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751505AbeCVRXN (ORCPT ); Thu, 22 Mar 2018 13:23:13 -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 2fdede2678b581bf; Thu, 22 Mar 2018 18:23:12 +0100 From: "Rafael J. Wysocki" To: Thomas Ilsche Cc: "Rafael J. Wysocki" , Linux PM , Peter Zijlstra , Frederic Weisbecker , Thomas Gleixner , Paul McKenney , Doug Smythies , 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:23:38 +0100 Message-ID: <2685716.WAg79ZNVrZ@aspire.rjw.lan> In-Reply-To: <642c6901-ad0d-b6b3-9ee9-3e0bd10aa610@tu-dresden.de> References: <2390019.oHdSGtR3EE@aspire.rjw.lan> <642c6901-ad0d-b6b3-9ee9-3e0bd10aa610@tu-dresden.de> 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 2:18:59 PM CET Thomas Ilsche wrote: > On 2018-03-21 23: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. > > > > 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. > > > > The patch on top of idle-loop-v7.2 doesn't improve idle behavior on > SKL-SP. Overall it is pretty erratic, I have not seen any regular > patterns. Sometimes only few cpus are affected, here's a screenshot of > almost all cpus being affected after a short burst workload. > > https://wwwpub.zih.tu-dresden.de/~tilsche/powernightmares/v7_2_reflect_skl_sp_idle.png Thanks for the information! I will post a v7.3 of patch [5/8] shortly that appears to give good results for me. It may be selectig deep states quite aggressively, but let's see.