Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp26211lfe; Fri, 15 Apr 2022 17:47:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXX9R6qhWpHHwpX7TrpjmbrbgPjwegj4MVDc6F1RtH61t/R8a4FO4kwtSuedqe1/2aZGiP X-Received: by 2002:a17:90b:352:b0:1c6:77e:a4f7 with SMTP id fh18-20020a17090b035200b001c6077ea4f7mr6793157pjb.77.1650070056089; Fri, 15 Apr 2022 17:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650070056; cv=none; d=google.com; s=arc-20160816; b=hGaqFGlolTb+ha8pE7HzHgiduUy/jIwGn4ZCs8b1iy+Upyh5cc56ailMZnLq/wUDiq 7SsrxKS8SwYwkAv3r2IIR//+B45TPDrZv+5sICER8CoKwQ5IeXdTLi2znAMgIDoFc4Nr MPnWyilFMf52mRo/iYaRgfiuxr26a7LPLhyT3yq8ySc7VEP1F5gNZtTmhlLmFVKUAXrQ 6UrsDkM7XOgL8NAkBahJEVv46enoHw5kh1LYuCttBGORDQ2t3TzzXcKegYTsrsa1oUz4 gCi1tW/neU8IGfKAgv/KNihQCZcP9syMDTQVAnIU7Vym6ZCCC5wXUbmG3NbRrzkdlD93 z+eg== 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=hh84Npmi5ZbCeMg7F1uzhmAwtmwkNtxtEy1dmlIlKgY=; b=fgAHri2dhn7gvMA+l7EKnT5E7V7pFa/fFBjutVVX0VU7xYftU/mNKi3Ha2ZYYls7D+ dTEgRBzWq4CWwCVV0QOG/NPVJcUQPPOfSfVYHwSLCRANaFnWFe5/zw9K979MpY5ysNRy 7dV12xbYme24AA/RidGkQWCGd8Hv6ORIf/qltLE40IjqK3kIS4pfnlUKbLN5aGdw237P SPN3bQIwE4TUaMYYlvItsgBHux2lHxtfpp27nVPGEeB7E4wuoxCkQqMa20fMRT1/afJl 89rG8gvGmDAWkkmdf8R5wUIJkA599B27s3eKHt8jQcly3zAdQ63HFQ0rdL9+4oLFEZBZ PpZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e0S++tFy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id j9-20020a636e09000000b003816043ef97si2901750pgc.396.2022.04.15.17.47.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:47:36 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e0S++tFy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C21EBD5551; Fri, 15 Apr 2022 17:38:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345843AbiDNTof (ORCPT + 99 others); Thu, 14 Apr 2022 15:44:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345839AbiDNTod (ORCPT ); Thu, 14 Apr 2022 15:44:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3ABBED911; Thu, 14 Apr 2022 12:42:07 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 7E4BBB8293E; Thu, 14 Apr 2022 19:42:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 288D9C385A1; Thu, 14 Apr 2022 19:42:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649965325; bh=hDxs4KU5mP0gUbUSd9NQEU3TT/tQrqWlLrCusTnSiDE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=e0S++tFyje2Ax3Sd6Dn6oBMdYfQ4kIzJT5kztcfSN5YMje8JCIXlePRTMPLiFQSZE DjszZ1ptDiasgbtmhxEBJl09Hk/C2h/ACqEziRc99npFjcEvrzOxiEsbVAAPDXtq6N nDOSh2EHPg8JXrN8xCAVa4fYtwtkcUa6hgsTRqzslAtf64UV4y8M8HJYR60f6c7Omg DaCJkv2mDjiGLPKLJ25dT3c/tjcJ8SoAqXfGT7KVaUp95TfwshCFuNrt7GvAmbRy5W nBDFD6mhO3cuYupb7bX4VZDvYnSrnsIA7VPuZm6qz3seuQ239zKWl/UuMDQbMkRxJM +x1uEwU8EBxvA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id BDD065C0144; Thu, 14 Apr 2022 12:42:04 -0700 (PDT) Date: Thu, 14 Apr 2022 12:42:04 -0700 From: "Paul E. McKenney" To: Joel Fernandes Cc: LKML , Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , rcu , Steven Rostedt , Frederic Weisbecker Subject: Re: [PATCH RFC] rcu/nocb: Provide default all-CPUs mask for RCU_NOCB_CPU=y Message-ID: <20220414194204.GU4285@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20220408155002.GF4285@paulmck-ThinkPad-P17-Gen-1> <20220408174908.GK4285@paulmck-ThinkPad-P17-Gen-1> <20220408205440.GL4285@paulmck-ThinkPad-P17-Gen-1> <20220411154109.GX4285@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.3 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 Thu, Apr 14, 2022 at 07:19:48PM +0000, Joel Fernandes wrote: > On Mon, Apr 11, 2022 at 08:41:09AM -0700, Paul E. McKenney wrote: > [..] > > > > [4] All CPUs are offloaded at boot, and any CPU can be de-offloaded > > > > and offloaded at runtime. This is the same behavior that > > > > you would currently get with CONFIG_RCU_NOCB_CPU_ALL=n and > > > > rcu_nocbs=0-N. > > > > > > Yes, this is the behavior I intend. So then there would not be a need > > > to pass a mask (and I suspect for a large number of users, it > > > simplifies boot params). > > > > Very good, and from what I can see, this should work for everyone. > > Just to clarify, what I am going to do is, if this new option =y, then > rcu_nocbs effectively wont do anything. i.e. All CPUs are offloaded at boot. > Let me know if we are not on the same page about it though. I do feel that is > a sensible choice given =y. If we are on same page, please ignore my comment. I was assuming that the rcu_nocbs=??? for non-empty "???" would override the CONFIG_RCU_NOCB_CPU_ALL=y. If you choose not to do that, shouldn't you at least issue some sort of diagnostic? After all, the sysadmin gave a kernel-boot parameter asking the code to do something and the code is choosing not to do that something. Of course, such a sysadmin might want the CONFIG_RCU_NOCB_CPU_ALL=y Kconfig option to affect only the default, that is, when no rcu_nocbs kernel boot parameter is specified. This would change the second "[4]" in my original table to "[2]". Thoughts? > > > > I believe that Steve Rostedt's review would carry weight for ChromeOS, > > > > however, I am suffering a senior moment on the right person for Android. > > > > > > I think for Android, Kalesh Singh is in the kernel team and Tim Murray > > > is the performance lead. They could appropriately represent their RCU > > > needs. > > > > Sounds good! Please collect a Reviewed-by from one or both of them. > > Ok. Thanx, Paul