Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5996733pxb; Mon, 14 Feb 2022 12:42:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoNTrr+d/g+CErAz+P9Z7HZ2fq7kkAWuJx7s0lczk9KZTnIpm11Yo9bSf7mBuK3VpXBmSD X-Received: by 2002:a17:902:aa90:: with SMTP id d16mr549034plr.89.1644871367043; Mon, 14 Feb 2022 12:42:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644871367; cv=none; d=google.com; s=arc-20160816; b=JICFioqiRz5vARmHI5IIaT5juWn2AJqGHBUA0hpkwppM/407Dt1bLc2bfo0/Ic6Arz l8uLPBTtSvrZJFbX7n5Hbl8Vz4so67hhFbEt4JtxHSHXd9y+kyV0ZvkPMcmfCpzbbuMB nyroCTVVXbOBUSaO1tmRcNDrUuw+yWYO26VkrlwD5BAgvg7z8NooiQ9t0RHqKpZTMkz4 Q3KGJkiz8NtVU2EXLE5ZgQpBmqruZy7JyBUu7ZZZTSFctwG9swzX0zouhgXQ1FsJAVl8 5rMp+sKW9TvGz0OGv9hD43VCdYpQfqw26Mlg67rgsDnqrBShfpcT5ekhXXkL4kcIVx6I 5+0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zwQhuOP4jFKaaGhZfn+8iyn+oInCCxnDfvHKTmkxW4w=; b=ffcgXetsJ8L5cHzCXFvy7dwFSjgYK4ZFinY8pjf4fzfk8q7A+wbg+XqygLodDrliCz sMuD7BsYcCnAwRQReKLEYITPGCuUeRxF5S1Df+WBpT1zCZzjYNfPAGuiGuEo/XVL4vxO WviOb1LlreoEWmIgSMBFD2zirv/WlUMxAazDkDwNmO9tzS2o+Ex65jTFEihud3Zd10jL J5C/qoCCs6GLsONyKHRiQq6Y/zsODkBd1VhH8e4qY0tMSa1F4BdldS/VPNmfElBSJZoH o45LVdXRwM9OTY2NSsb5BLT4GRFMYJsotXwjzeiYGcDxiZqsOo5soxdNnA1PARUdSbiY WqYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NY49rm1o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t4si11616232pld.341.2022.02.14.12.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:42:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NY49rm1o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 27F256C96F; Mon, 14 Feb 2022 12:10:42 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344809AbiBNLWR (ORCPT + 99 others); Mon, 14 Feb 2022 06:22:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350665AbiBNLVp (ORCPT ); Mon, 14 Feb 2022 06:21:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A174D13D60; Mon, 14 Feb 2022 02:57:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3BC8B60E84; Mon, 14 Feb 2022 10:57:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E529C340E9; Mon, 14 Feb 2022 10:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644836267; bh=xH46V2BfUDEk4tfDK5AlSlTasUAt3mbtgoN2tyCrJuE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NY49rm1oYN8KMtEh7BNsW9o9HRKwbmuz+DUYhCUNjfjYjKlX/syU9fRRmA4f1+oig ZNImXBF5GRqIZQghhPYmCucic71XuMLiJrP6RjqIb1+SzBwKeRThx8T95HhuJYwHKD 7/ZqrxEnVPV4dkAA2IUKdjh4GtpePda3FAgvhm9YF4CtGyLNt6v4vjtvZ6xGxjdXX/ +giS63sVuurdMRgDjEIkSdmHs3ZqzdaReEs1/ALdInTmhQsfy4DDSF1vanX7qymwCt gMRwQtsGdHkCBUYZVnz1mrLc3A15gmCzXS5SHBPcpPSrNlKaSnPCpqF6t/IVEnjNbR Gb3zGDlw6xb4Q== Date: Mon, 14 Feb 2022 11:57:44 +0100 From: Frederic Weisbecker To: Yu Liao Cc: paulmck@kernel.org, linux-kernel@vger.kernel.org, liwei391@huawei.com, rcu@vger.kernel.org Subject: Re: Question about nohz and sysidle Message-ID: <20220214105744.GA663287@lothringen> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 14, 2022 at 05:40:55PM +0800, Yu Liao wrote: Hi Yu Liao, > > On 2022/2/14 16:28, Yu Liao wrote: > > Hi Frederic, > > > > I'm working on an issue about nohz. When NO_HZ_FULL is enabled, CPU 0 > > handles the timekeeping duty on behalf of all other CPUs, which means > > CPU 0 never stop tick even in sysidle state. This is a powersaving > > issue. > > > > I found your patchset (nohz: Support sysidle) in the below link. > > https://lore.kernel.org/all/1406569056-30217-1-git-send-email-fweisbec@gmail.com/ > > > > But these patches haven't been merged into mainline yet and sysidle > > state detection has been removed by commit fe5ac724d81a (rcu: Remove > > nohz_full full-system-idle state machine) as well. > > > > I tried your patches and it does work, why are we no longer working on > > stopping timekeeping duty when all full dynticks CPUs are idle? Because it was not a priority at that time. There were so many things to handle first (and we are not even done yet) that we postponed that feature until someone ever comes up with powersaving issues on nohz_full. We were waiting for you :) It's possible to unearth this. I think the first step will be to merge the RCU dynticks counters into context tracking, something that was on my queue anyway, and then revive this: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?h=sysidle.2017.05.11a&id=fe5ac724d81a3c7803e60c2232718f212f3f38d4 Thanks.