Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2393930rwb; Thu, 29 Sep 2022 09:37:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ojz/n3S2AFduo7r8kc6LA5JYDNzZ5wpg4QtOwBqtN3optuwmvPvzXB3UA2se1fMTW3//a X-Received: by 2002:a17:907:94d0:b0:783:d969:f30c with SMTP id dn16-20020a17090794d000b00783d969f30cmr3421516ejc.165.1664469450879; Thu, 29 Sep 2022 09:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664469450; cv=none; d=google.com; s=arc-20160816; b=L/xo0iXkOu+AxKDXi8bYmjmyrAgrWlWDISL5+rq23usijoG7glTmGH7vubXQ+250T1 K34Iv4Joa5ccLdA0mZaWVKm8p2aiOKXBTqyosJOkW6asLsr7dXjKt/rJ+zx4xxoy7UbZ gLBZIAaqM+LyfX8qBgkwDT4jWPNXD/ErYMhFtTgGwc2To1uvXdaHT7qUW0JnnNbEVgzn YVic8ekmfjgKx/7H5DxSn/LpiFdGOjlFg5UZmi1HOLZopAsvVN47dX5ptRuThqDQXT+D zLK3aBOX9GeFtK6ilZblA20GO2HSGTub9CFBVwxKOhUt09eNjZ6la8/katypVPEdasz8 r+wg== 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=KZ3fV59CesKghMkILeqQGGCDBJNNycBOEuAGsaJgiig=; b=gn4pcqAtzESszYGtxt0SSgBRPyrUPGj2VnxLbjeZbvWXTaCFnKzOKoRbJY3duK+BxX CRPpJ1f6hTSYagpKhPvG61WQPx/RH09A/iXUQQ7jxrjbA6IEKUWcUvdyYPOaouH+60j4 X3guwX7F88/g7gCiGMAoT0UVBAnTom/1V3K+6b8B6AqlaaZHP0Utko6B0LI8p93Ehw57 4Qc3uAPrvD2wM4F09lxRJnuUkcW2GNGou+pWW6hglKEwIIoXZOAWewVL3IGmY7dVRxuj ptniU5tco9/ezWKxXALlnicL33KONCIta5hLOWOv945+38UwJzKVcEweODT7C1Nx4UOk mjaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=PUugdqj6; 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 w24-20020a170906b19800b00777795f0725si7313673ejy.139.2022.09.29.09.37.05; Thu, 29 Sep 2022 09:37:30 -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=desiato.20200630 header.b=PUugdqj6; 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 S235147AbiI2Q0F (ORCPT + 99 others); Thu, 29 Sep 2022 12:26:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236272AbiI2QZj (ORCPT ); Thu, 29 Sep 2022 12:25:39 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C3ED13F70F for ; Thu, 29 Sep 2022 09:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=KZ3fV59CesKghMkILeqQGGCDBJNNycBOEuAGsaJgiig=; b=PUugdqj6xeGCEsg1OqJcdJ+4Hb +S9oWEo2Qc/aLAOovpMWhK8/buecIbNLCifwg1d2M4SUHjfssD3hPe+ZPt7iPBjwIq2okn4EJ5Gur /PWckTC7hvWbqW2mDUtqZm+2YusKojMPBN4vV8AXNs1e+xWge9ZQo/cR/1Xrm7QOEweZdOcVkpeTm TJtlol98s0AjWUWZia0kkNKC4rcTjfcTS0DJODyir2B65B9/WTa1WA1dgrRjaeqxIPNHwz2f1QUBP ZsKblRckGqym6icO7xH9s74Ztqw99yXpI+wGVxgHWqK1N1PuT4vMmSjNV0ndmQXD6tJn+ZcLXHjLj sfr6+jjA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1odwJh-00GwHg-G8; Thu, 29 Sep 2022 16:23:17 +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 22078300462; Thu, 29 Sep 2022 18:23:17 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0CE232BCB5D70; Thu, 29 Sep 2022 18:23:17 +0200 (CEST) Date: Thu, 29 Sep 2022 18:23:16 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Joel Fernandes , Frederic Weisbecker , Thomas Gleixner , linux-kernel@vger.kernel.org, Boqun Feng , "Rafael J. Wysocki" Subject: Re: RCU vs NOHZ Message-ID: References: <20220915160600.GA246308@paulmck-ThinkPad-P17-Gen-1> <20220915191427.GC246308@paulmck-ThinkPad-P17-Gen-1> <20220916075817.GE246308@paulmck-ThinkPad-P17-Gen-1> <20220917142508.GF246308@paulmck-ThinkPad-P17-Gen-1> <20220929152044.GE4196@paulmck-ThinkPad-P17-Gen-1> <20220929154618.GA2864141@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220929154618.GA2864141@paulmck-ThinkPad-P17-Gen-1> 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 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 Thu, Sep 29, 2022 at 08:46:18AM -0700, Paul E. McKenney wrote: > On Thu, Sep 29, 2022 at 08:20:44AM -0700, Paul E. McKenney wrote: > > > > There is a directly invoked RCU hook for any transition that enables or > > > > disables the tick, namely the ct_*_enter() and ct_*_exit() functions, > > > > that is, those functions formerly known as rcu_*_enter() and rcu_*_exit(). > > > > > > Context tracking doesn't know about NOHZ, therefore RCU can't either. > > > Context tracking knows about IDLE, but not all IDLE is NOHZ-IDLE. > > > > > > Specifically we have: > > > > > > ct_{idle,irq,nmi,user,kernel}_enter() > > > > > > And none of them are related to NOHZ in the slightest. So no, RCU does > > > not have a NOHZ callback. > > > > > > I'm still thikning you're conflating NOHZ_FULL (stopping the tick when > > > in userspace) and regular NOHZ (stopping the tick when idle). > > Exactly how are ct_user_enter() and ct_user_exit() completely unrelated > to nohz_full CPUs? That's the thing; I'm not talking about nohz_full. I'm talking about regular nohz. World of difference there. nohz_full is a gimmick that shouldn't be used outside of very specific cases. Regular nohz otoh is used by everybody always.