Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp358476pxw; Fri, 8 Apr 2022 09:15:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2zSrCrcLG2vbSnPsTI8TSiJT73wCVuhqxYyGzYg9S5eMCMm4MT9mEN8DP1W3RlB5rNbyN X-Received: by 2002:a05:6402:1912:b0:418:cd23:3742 with SMTP id e18-20020a056402191200b00418cd233742mr20218793edz.412.1649434537615; Fri, 08 Apr 2022 09:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649434537; cv=none; d=google.com; s=arc-20160816; b=1JPdIbtDwR+hll61mFEezHP53PZxbt6wNOkapbResmoo4HI6IczdmY/+CI2rTaqT/O akrBm0rtIqJkOJd9H+wnO9an7cSSB5bjl5f1kFfYoglKjJuerIjGo0QIHzCKBKtd13fv +PoEXRYJ9LcAHG83hcHYbvVoj4wjeoySmrr8eNVNVWhqFt8MyTnXF4fuEdGCw14Vwl7G 05IB5Yz58d2tlaZfpGCOw+EXWDKNO1E+qU2ywMmyihTRNbi+i7MdXPwtx0SplBYeT2U3 +WYMm6K2Cdh/xdcqlTjlrMdJB2IUuYC2lFGEeMX3eiwI6kwRVcat3l0J/a+1YKxO/DbB 1MxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EiDN7k6aC8ZwYDiFSJSV9wrBF+tzi9VGwTXl8N4IGsA=; b=UPh/b7ftjy5DSCiV8eBCPYF8cco2S0A878Rs/16z+OgewCITgNLSRFRu3cjIUFkZLC Z3Dr2FcfMl4OqZQZMR51nwaerluRSGBItQPdcQkvp+R8a8lBUqJtX4ryII5tD+Q7kukG 5gPf++ZQJjsDpYE8l+ps81dTMTH1IcuTUo8aVqb8Vn3hlaS+0ZOp/qq96PgXDkFsn7/Y FrzZb8HjWsnQwwuwLe1F1AUHxsmegMJkPY+kEKZK8ey2RqIPKpe+PCiOPbbdaQsOuVjv 4Pbees21sMmr6qKQyzREcGIZJubTmx2Ka52UWZWpPZo41F9T/HXKcYQTciy92Y0ACL4L W+Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=xe6Sx6Yn; 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 v14-20020a056402348e00b00418c2b5bf81si1366249edc.611.2022.04.08.09.15.11; Fri, 08 Apr 2022 09:15:37 -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=@joelfernandes.org header.s=google header.b=xe6Sx6Yn; 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 S231660AbiDHKXT (ORCPT + 99 others); Fri, 8 Apr 2022 06:23:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbiDHKXR (ORCPT ); Fri, 8 Apr 2022 06:23:17 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3A97140DC5 for ; Fri, 8 Apr 2022 03:21:14 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id z7so10089822iom.1 for ; Fri, 08 Apr 2022 03:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EiDN7k6aC8ZwYDiFSJSV9wrBF+tzi9VGwTXl8N4IGsA=; b=xe6Sx6YnpT8qRY77m0yznqYAK7saEHhq+hJLli+HkXPONxuO4flT1bUYpsx0oSPEVg XWWoaTTaK7OmZUyXdVqg6bVaddQpNTFyYu+wYlfYEml4uytnsN5qXispMHUC/vqynwKa bW6YQcY8XUnsrva+TGmfOW9o/Gm1IYjw9ZdqA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EiDN7k6aC8ZwYDiFSJSV9wrBF+tzi9VGwTXl8N4IGsA=; b=hxlAzehSuQcX/DY1zBWR78QaOFtXeNy8nIwcq9ZSDfHpdMgpTbS4TQJh4il7whqPj2 VwmH2r7lL/iTANpsMvI0JIcmzfmXFP0TYbJfzblkwl6r8Gcu3J/14fClwkVoKp1tUPGA Ve8jsBK3i85HUcXmtcfhYhuJnuYaAc9MEdYQ81PLEEmPKVCtw5QjoebWAVF63pbgagCX QzBmnd5GmK0URplxIme8n2cARsX8W5QNYu1iKPdKjVYoFooigXew1syo7an/gdsZ2KcW 39MgztZQZ+Nu6TEsMpE8DtX5aTeQCPNhN/VgyOyoSVa8b0Ru57tBrbokgpCJmVJf0L5y o1EA== X-Gm-Message-State: AOAM533Ilt56L/9R4giQt9wYQR3EqzvR9z2Ux5WwyAJzJkpkT+TKCssT 6oo9Ig8e6DEbo8C1mbXr5kxqHgEY/TZ3RiAzdJUYHA== X-Received: by 2002:a05:6638:130d:b0:323:8fba:8a15 with SMTP id r13-20020a056638130d00b003238fba8a15mr9476118jad.270.1649413274312; Fri, 08 Apr 2022 03:21:14 -0700 (PDT) MIME-Version: 1.0 References: <20220408045734.1158817-1-kaleshsingh@google.com> In-Reply-To: <20220408045734.1158817-1-kaleshsingh@google.com> From: Joel Fernandes Date: Fri, 8 Apr 2022 06:21:03 -0400 Message-ID: Subject: Re: [PATCH v2] EXP rcu: Move expedited grace period (GP) work to RT kthread_worker To: Kalesh Singh Cc: Suren Baghdasaryan , kernel-team , "Paul E. McKenney" , Tejun Heo , Tim Murray , Wei Wang , Kyle Lin , Chunwei Lu , Lulu Wang , Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , rcu , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Apr 8, 2022 at 12:57 AM Kalesh Singh wrote: [..] > +config RCU_EXP_KTHREAD > + bool "Perform RCU expedited work in a real-time kthread" > + depends on RCU_BOOST && RCU_EXPERT Doesn't this disable the fix if a system is not RCU_EXPERT ? Please see the definition of RCU_EXPERT: "This option needs to be enabled if you wish to make expert-level adjustments to RCU configuration." I don't think a bug fix counts as an expert-level adjustment. > + default !PREEMPT_RT && NR_CPUS <= 32 What is the benefit of turning it off on PREEMPT_RT, even if PREEMPT_RT does not use expedited GPs much post-boot? I would think in the future if PREEMPT_RT ever uses expedited GPs, they would want this feature even more. I'd rather be future-proof now as I don't see any advantages of disabling it on !PREEMPT_RT (And a drawback that the fix won't apply to those systems). Also will keep the config simple. > + help > + Use this option to further reduce the latencies of expedited > + grace periods at the expense of being more disruptive. > + > + Accept the default if unsure. > + > config RCU_NOCB_CPU > bool "Offload RCU callback processing from boot-selected CPUs" > depends on TREE_RCU [...] Thanks, - Joel