Received: by 10.213.65.68 with SMTP id h4csp678991imn; Thu, 22 Mar 2018 06:20:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELusHSOvrObKQruMOzr8ZVCPVkU+9h3gqJ/P3AuGbRZ3U47vkwMJNPrGlsbyyqFayOW/GuEU X-Received: by 10.101.96.134 with SMTP id t6mr7426585pgu.58.1521724837442; Thu, 22 Mar 2018 06:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521724837; cv=none; d=google.com; s=arc-20160816; b=Zv524nCM19UKI6zmnBq7LXAvQ5vEoBEQRrOtlsMQnGX+M9Nx39Zz+z42OZdW9JhLF+ MHUXqR22D4h25T8hel6Sly9EsbGt/E4pbFKa2CqHu6wItcTktkd5txCXZnWwJHebY4/J cqfMGS9YY/pJN9i9BbGN5Nsl0YB4yNZGWE4lqULO5aNsWMWUaNCIggxZW9uCEQEu2rFr DpzLJjIigrUqUvU4pQ3vmO0ND0RlM1jDD8JbIj2GimHsosal/Yus6NAMhsPB9h+06mlp XxvoL7j34PvHHW1ZmJGROlkopEO4sEk8ICa5BQZSn0iWCiF+Rd+K9CDAPOshWPAd2Mqu BEIQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Sgw3YKXVyXwQ7Z0jjGkoG8cW8IhnPSetawJpzHY+hSM=; b=urAKT9s10THwGzbOCcD9Vw+byaeIf+r28PrnRDkMcx9ZXfZdyDe/+QMwntdF59cxz8 PM/JfYCl8izrRlPQ1rTyMrDJV/IbEkapjjhAFnJ8iz6CXGyrsFGNZRd55GY2BcERL59b lX/P6Jd6sEs811oQhLI2KbsjVmiuVCDx12vMIUMjzz3+hBAbfT1QTvsWNE/YhCJkenO4 ypf6FMD0meVhQFgKDn/wfSY9Qgg1Yl1RwIxtBJPM99d/oV3450qYX8tyDOvamctj0Rsk r0hisbA6QAK8whk+89dQRa4rVcC9nmN/4iP7NneSTRp2ssEAdLry9Bq/E/HUiHcxV86F SXUg== 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 y10-v6si6789877plt.533.2018.03.22.06.20.22; Thu, 22 Mar 2018 06:20:37 -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 S1755080AbeCVNT3 (ORCPT + 99 others); Thu, 22 Mar 2018 09:19:29 -0400 Received: from mailout5.zih.tu-dresden.de ([141.30.67.74]:58815 "EHLO mailout5.zih.tu-dresden.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752282AbeCVNT2 (ORCPT ); Thu, 22 Mar 2018 09:19:28 -0400 Received: from [172.26.34.104] (helo=msx.tu-dresden.de) by mailout5.zih.tu-dresden.de with esmtps (TLSv1.2:AES256-SHA:256) (Exim 4.84_2) (envelope-from ) id 1ez07d-0003u2-Rd; Thu, 22 Mar 2018 14:19:13 +0100 Received: from [141.30.69.3] (141.30.69.3) by MSX-L104.msx.ad.zih.tu-dresden.de (172.26.34.104) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Thu, 22 Mar 2018 14:18:59 +0100 Subject: Re: [RFT][PATCH v7 5/8] cpuidle: Return nohz hint from cpuidle_select() To: "Rafael J. Wysocki" CC: Linux PM , Peter Zijlstra , Frederic Weisbecker , "Thomas Gleixner" , Paul McKenney , Doug Smythies , Rik van Riel , "Aubrey Li" , Mike Galbraith , LKML References: <2390019.oHdSGtR3EE@aspire.rjw.lan> <1635957.yuHkCe9oyz@aspire.rjw.lan> From: Thomas Ilsche Message-ID: <642c6901-ad0d-b6b3-9ee9-3e0bd10aa610@tu-dresden.de> Date: Thu, 22 Mar 2018 14:18:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MSX-L106.msx.ad.zih.tu-dresden.de (172.26.34.106) To MSX-L104.msx.ad.zih.tu-dresden.de (172.26.34.104) X-PMWin-Version: 4.0.3, Antivirus-Engine: 3.70.2, Antivirus-Data: 5.49 X-TUD-Virus-Scanned: mailout5.zih.tu-dresden.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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