Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp392236rwd; Thu, 8 Jun 2023 02:07:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72ke5HhthI1XXK3i91CpugcLvQgXe8z+7WlIqM5jcySJQGyLB3LG6n/eYKjEAcEhxFzvJt X-Received: by 2002:a17:90a:4b4e:b0:259:acbd:c6ef with SMTP id o14-20020a17090a4b4e00b00259acbdc6efmr3579644pjl.16.1686215245054; Thu, 08 Jun 2023 02:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686215245; cv=none; d=google.com; s=arc-20160816; b=FZdBngHqmzFBn8av+lWmHbOYR5++xWJkUJ0tg4seMKRQhDyAvVHzec7tmTSY2pK1Zv +kI9VWhi7APw9GE+l30sQRyORftmsoDC5GgxzfqsukEBs4ypiyJYrAPhinJLW7ntwAl0 c+kiHUilXYh0Wfwq7FRlB/tERr9rFr8l3nPEUw240O11ddqDrvD0r5wnjBS4n3vwoASo YolQCy0W5fOlAS6+IaIqCtuyEFILXL5hW0cXgYOqVUeEjniZ/aZsKdBJy1u6CBe/HvSG X81hcVk1Rd1pI5Jv6o6/FzpvlC0gqiBgs1CQOHgKgID3FjABGXdEle+yb95cQ+/FmYwX d8vQ== 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=FPWtaDVdvXZWTVU7x6Xobi2mZSJGnrC3Z2LShYUbHLQ=; b=dASTXtWUE9SPPes8Z30gPb/t59l6YfmalJ8iKbv3LCFkSFKZuQBiUz+9UDyrx7aHDW SGZgL2WaBHX7HbqrwF41tVY9lzQ7AoiKdq3z48LkJ5XuCJHr78E5G1TUCkO94jHzdn7T AMKD6Em3chDlxCXOtFyDO8EXa0kugbKgvoMOHRkD5g0Qn030EDa32PSu0SX/L9A/bOVo nzujw9917yeliAW2WCdThi1XkTu0jkgQVUNAhM1pHQttpxWL8PKC7JCC+2gN0UEsrD9c i2faGc1NloRKuZBxgWO++C+2cERxRSmiRnKgBxXZC68L9+PML4ljxIYLdkKILCv8SYg+ Aq1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IoeCzYYD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020a17090aea0500b0025667be94f0si2422731pjy.77.2023.06.08.02.07.13; Thu, 08 Jun 2023 02:07:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IoeCzYYD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235356AbjFHIeL (ORCPT + 99 others); Thu, 8 Jun 2023 04:34:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234434AbjFHIeK (ORCPT ); Thu, 8 Jun 2023 04:34:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AF9926B2 for ; Thu, 8 Jun 2023 01:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=FPWtaDVdvXZWTVU7x6Xobi2mZSJGnrC3Z2LShYUbHLQ=; b=IoeCzYYDonJnkwgesb2CGHFss9 pioSbiF1sk/OhYC5tlefog4c9WgmjtfTgIZYzjyCKJBJSP5pRWN3+PuxNbFtzSoopRhlv4/Sqwa0B ByW4Fm2tmkjn1jX4Tr2wqNiDlGERSl7cp7KpTr4sYofNcP09guqR+PSz72txSGRiNFQ/LuuJkmdJX nj0ft7XKU2H7QdMyBfxJAEMdV//Zvrt7EZGuyqMhU5DfCZV92WV915Ny1JnNsvdAkrmvlwXk+M5Eg TsDH6DE95PJZNRKl6ti1maQcKqIVz9QpciElKjfvsv/quERXlJjPMjdW8uYSdT2XTRVqUF/cwmgdS N0FqzaYQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1q7B5l-00FGkI-6I; Thu, 08 Jun 2023 08:34:01 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 6D97D300274; Thu, 8 Jun 2023 10:34:00 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 600FF20D72194; Thu, 8 Jun 2023 10:34:00 +0200 (CEST) Date: Thu, 8 Jun 2023 10:34:00 +0200 From: Peter Zijlstra To: Marcelo Tosatti Cc: Frederic Weisbecker , "Rafael J. Wysocki" , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/idle: disable tick in idle=poll idle entry Message-ID: <20230608083400.GH998233@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Jun 07, 2023 at 10:10:46PM -0300, Marcelo Tosatti wrote: > > Commit a5183862e76fdc25f36b39c2489b816a5c66e2e5 > ("tick/nohz: Conditionally restart tick on idle exit") allows > a nohz_full CPU to enter idle and return from it with the > scheduler tick disabled (since the tick might be undesired noise). > > The idle=poll case still unconditionally restarts the tick when entering > idle. > > To reduce the noise for that case as well, stop the tick when entering > idle, for the idle=poll case. > > tick_nohz_idle_exit (called if the NEED_RESCHED bit is set) > is responsible for re-enabling the tick when necessary. Who cares and why?