Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp64598rdf; Mon, 20 Nov 2023 16:29:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHx2W7SJ8rbNO0vxakovNp1UamxYB9si5/XeX6lxiesEOxk1ToEZDkEbHtpu/PN3bGjuwWL X-Received: by 2002:a05:6a20:3c8e:b0:187:4e8c:ac5c with SMTP id b14-20020a056a203c8e00b001874e8cac5cmr1632204pzj.1.1700526552885; Mon, 20 Nov 2023 16:29:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700526552; cv=none; d=google.com; s=arc-20160816; b=y+ku+Vs/iX5XtHB0cea7ylqX3WDXEsQutgF5RkuD3M5OvYILSKEduCi+yXKWcM64kz pZtoXAyVelONAksfCvut0cPXNyckgUuVjYhcDb9kKuP/xyqlu5VkIDAmbeQuAORODSV8 FH60xCCWEe8aTJDzEbFS3Y04ppjl+tEayvzJ8F31f/Sw5TDCfgvTbftSYIUMvzlGaKNO IZA9TBLq89X/WB2cOCrbuO3rv1aM8K80ZPD1oMXl4y5rYr7rsGAaaXiyVvvpnVTe58Ke FzsrtVhUdehIi+Aawdq8rS5QXBdSBwLq3I4GnjZvuwQufG9HkBNCywkdHcR0fhMiOvSv 5NYQ== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XwuDrkvlDLBHfrIy53C+s+mn7gFT2Trl7ro0yHu9l7s=; fh=jQ5Uc6NedxhwVy8rI3uh14TYWZm60AMG6naPW/YDlGs=; b=GLTblRa9JNaR/DDv1I7OXk+q2pkq2Dvn8oGkA/15/McTrO7FKJp4840dBIf5xuNIXD FgL8eup/jZGeErtrpTTZVZYPgKoIhk03oO6yJ9ljWkxthJhJXigp4Bm4w0RKypqJfKHn KAZp3YRjZABKTpgw5rMVpl8RMYbJo0uSn1irhWk/eKbnYK2IiKG/VBIHiUBfz+E1ubEc Q0g0lvXBvW9Ld+X2WUn1B0YuUd+diqkM9eoaK2EpQvug8LzLDHT8gbPHK7q8+fX3E15q GofZoWWS7+7M+x0FZUJutH5hqPvcg911Lk6AinODIR2aZ7UD35mvn5v7iSlgxZo5tFo9 U+zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aPBqq9i7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id x28-20020aa78f1c000000b006b5c34a0c8csi9065395pfr.251.2023.11.20.16.29.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 16:29:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aPBqq9i7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1DF3F8032A18; Mon, 20 Nov 2023 16:29:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbjKUA24 (ORCPT + 99 others); Mon, 20 Nov 2023 19:28:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjKUA2z (ORCPT ); Mon, 20 Nov 2023 19:28:55 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3B41B4 for ; Mon, 20 Nov 2023 16:28:51 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F2D5C433C7; Tue, 21 Nov 2023 00:28:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700526531; bh=tVOIKJd4kJ7fBg79SOhSnFST6k3zeeIVN5WaqodLUIU=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=aPBqq9i7I2H+gEkoVoqGZAeigotmYTn9NrtyDRrkVpdPb48U7gqp41xPVdezq2b7v mefnJIVi7ZTa+tv+ezKbK8qMRK6WubXgofQPZQGEq4cips2WkMjhe0g+wCc1U62BzH Q55vlOmcwDarqnGOx7C53FvXxhucy+ZpCa/x2SW4O5wD+52NAzb5Jt5RM6hsjLrjYL FShMcdRAb0ciBB18Ssx9ie9Qa0VfagAuGyU+lNrx+22+MTxIZoLMABQHWel/1fKylt FqwQasqRaGTL5e5kNJEXRIjiuaX++ZtLp/LgNELIQsOZ+Prewa9EoW9jHgtTOcN4hG 7ey954nDYv+5A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 0378BCE1ABD; Mon, 20 Nov 2023 16:28:51 -0800 (PST) Date: Mon, 20 Nov 2023 16:28:50 -0800 From: "Paul E. McKenney" To: Steven Rostedt Cc: Ankur Arora , linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org, torvalds@linux-foundation.org, linux-mm@kvack.org, x86@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, jgross@suse.com, andrew.cooper3@citrix.com, mingo@kernel.org, bristot@kernel.org, mathieu.desnoyers@efficios.com, geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, anton.ivanov@cambridgegreys.com, mattst88@gmail.com, krypton@ulrich-teichert.org, David.Laight@aculab.com, richard@nod.at, mjguzik@gmail.com, Simon Horman , Julian Anastasov , Alexei Starovoitov , Daniel Borkmann Subject: Re: [RFC PATCH 47/86] rcu: select PREEMPT_RCU if PREEMPT Message-ID: Reply-To: paulmck@kernel.org References: <20231107215742.363031-1-ankur.a.arora@oracle.com> <20231107215742.363031-48-ankur.a.arora@oracle.com> <20231107192703.1c493431@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231107192703.1c493431@gandalf.local.home> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 16:29:10 -0800 (PST) On Tue, Nov 07, 2023 at 07:27:03PM -0500, Steven Rostedt wrote: > On Tue, 7 Nov 2023 13:57:33 -0800 > Ankur Arora wrote: > > > With PREEMPTION being always-on, some configurations might prefer > > the stronger forward-progress guarantees provided by PREEMPT_RCU=n > > as compared to PREEMPT_RCU=y. > > > > So, select PREEMPT_RCU=n for PREEMPT_VOLUNTARY and PREEMPT_NONE and > > enabling PREEMPT_RCU=y for PREEMPT or PREEMPT_RT. > > > > Note that the preemption model can be changed at runtime (modulo > > configurations with ARCH_NO_PREEMPT), but the RCU configuration > > is statically compiled. > > I wonder if we should make this a separate patch, and allow PREEMPT_RCU=n > when PREEMPT=y? You mean independent of this series? If so, I am not all that excited about allowing a new option due to the effect on testing. With this full series, the number of test scenarios is preserved. Actually, that is not exactly true, is it? It would be if we instead had something like this: config PREEMPT_RCU bool default y if PREEMPT || PREEMPT_RT depends on !PREEMPT_NONE && !PREEMPT_VOLUNTARY select TREE_RCU Any reason why this would be a problem? Or to put it another way, do you know of anyone who really wants a preemptible kernel (CONFIG_PREEMPT=y, CONFIG_PREEMPT_NONE=n and CONFIG_PREEMPT_VOLUNTARY=n) but also non-preemptible RCU (CONFIG_PREEMPT_RCU=y)? If so, why? I am having some difficulty seeing how this combination could be at all helpful. And if it is not helpful, we should not allow people to shoot themselves in the foot with it. > This could allow us to test this without this having to be part of this > series. OK, if you mean for testing purposes but not to go to mainline without the rest of the series, I am good with that idea. And thank you to Ankur for preserving non-preemptible RCU for those of us using system that are adequately but not generously endowed with memory! Thanx, Paul