Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3539006rwe; Mon, 29 Aug 2022 14:05:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Fi+KllfKWG+Pxj/EUNRkCcux/6/2FlnxMUm4auwHjePFh+/bqcI4U0qw2pu2/CJ02uc9q X-Received: by 2002:a17:907:1c27:b0:73d:ce49:6dd7 with SMTP id nc39-20020a1709071c2700b0073dce496dd7mr14638327ejc.470.1661807105497; Mon, 29 Aug 2022 14:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661807105; cv=none; d=google.com; s=arc-20160816; b=udBY34PvG5KmO576efzwpZBnUz+HlB9FULeotFMD8NW+5wUR7Q8On1OjnAfkOr/zLS aE6ukt4VWJKqB5NFhX4zFkDtLMCpIIiR3qxRM/EzX29wf1fok4G1w7AARv/ZZnrKi6x+ 3UMSYy21YsERsm6MWXiTJ5AsK3B5tyIldyjjMaLj1f7rvdj5KV9LXouOXFQCXCHpy4UR p1DbfdC9FQ+6qgGiTlbytdwucKeBtERsBCdUyjua/CXQTp0qa3d7uFwlmCKHTjIGlS9h yEuclurUjzg0eKLXe28e4LY6qp3pefMrec/RkXK91YOJ2kg3G0WsU42d2EwNfmT4jYDS KxQw== 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=cHgb8is1s1/IIdUooiK63RBMdZzZXw58VVRpVaSHSIU=; b=vx/TqSbY9MFqrfnT1f3JRr89hbv2aik3qe0HJT9aaUodqe/wBpD3zXWjY9MprVOTf6 z4npYxBJw8u5A419GeF4S+p/JLe5bT0R6WKnwSG7R3B609tOWa281IflKy78HMjSagOj 1ihztqNgl5vs+WX+XmGbFvgYvzO18hDVTLxZ06OgDkAkb8q/ZoqOEs7UEUxyz9cO1FrL T4CBuUvhjL23ttur1QqUsZhhjfSOVqouL1StwRsCSZc6e30ISdD5mlxRfXUkVnRr7cal RjEZvhUOgLlqFR1zGrVGHWBZQ+nt24Dyyp595lp6aPCmGJz8LXwWyfSDsVh+sShprwmv bIVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=wCqx693s; 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 b21-20020a1709065e5500b0073d6430854dsi6533565eju.213.2022.08.29.14.04.35; Mon, 29 Aug 2022 14:05:05 -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=wCqx693s; 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 S229600AbiH2Usm (ORCPT + 99 others); Mon, 29 Aug 2022 16:48:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbiH2Usj (ORCPT ); Mon, 29 Aug 2022 16:48:39 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1262F9A6B1 for ; Mon, 29 Aug 2022 13:48:39 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id z72so7610826iof.12 for ; Mon, 29 Aug 2022 13:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=cHgb8is1s1/IIdUooiK63RBMdZzZXw58VVRpVaSHSIU=; b=wCqx693sslE2Savk58+n/qDHWX1TwwcS2+j3NFpcEfuSG+6DcMH5q7RP39tS1bx/VG 9RI6VRuHaPfJZQuMCEj89hKiCgBkDEg4woLdZgEOqNloT9Yzn4SmYjKCmtAk9Ed2q/7N CPmTfynuiBHSaDEL6BtHEUjSYcTX1GcB5vuFY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=cHgb8is1s1/IIdUooiK63RBMdZzZXw58VVRpVaSHSIU=; b=dqsBzbfinTMXnSsTbcLYmayf7c+8HD0ZcJwI2uXrVJ+CLoBrE2/bf71K52nogtJquM Z/CBzEEY5SZ08dkKqcuXne8+ULjS0EZBWxfvoNwQ1Q6IkymQth6BGlldfACO5y469ezs fNp38UDlzt8cfRgvKJu6tvrIdRuONzr87O2brHhEHTt4yWQI0wD6xMi4Uo0BR0KHJjrt i4Fx82qsVqcBCuHOIwnc8g/xy9iQdUuLi+6TCfg/P1y6imdbT6wpcFpfF9/PUB7WXErv jXhEAGWiVXe2wAPmZ5IEozFHMwQxLK/0KxB/BknzX3CGd9CGxQSbCvxQgbYybUIpFcgC NLbA== X-Gm-Message-State: ACgBeo2bB6ejO160acjKxPKXMNfuNzKS1DbH64eFwKzKcdKbhndhrFQu 8zHL+aQUCECvyr/oDKW6sZOO/lor0pLjwAM2BHl5UxKJ57R79w== X-Received: by 2002:a05:6638:160b:b0:346:ab00:9c7c with SMTP id x11-20020a056638160b00b00346ab009c7cmr10657775jas.241.1661806118443; Mon, 29 Aug 2022 13:48:38 -0700 (PDT) MIME-Version: 1.0 References: <20220819204857.3066329-1-joel@joelfernandes.org> <20220829134045.GA54589@lothringen> <1f7dd31b-f4d0-5c1c-ce28-c27f75c17f05@joelfernandes.org> <20220829194622.GA58291@lothringen> <20220829204202.GQ6159@paulmck-ThinkPad-P17-Gen-1> In-Reply-To: <20220829204202.GQ6159@paulmck-ThinkPad-P17-Gen-1> From: Joel Fernandes Date: Mon, 29 Aug 2022 16:48:25 -0400 Message-ID: Subject: Re: [PATCH v4 00/14] Implement call_rcu_lazy() and miscellaneous fixes To: "Paul E. McKenney" Cc: Frederic Weisbecker , Dietmar Eggemann , LKML , Rushikesh S Kadam , "Uladzislau Rezki (Sony)" , Neeraj upadhyay , Steven Rostedt , rcu , Vineeth Pillai Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.4 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_BLACK autolearn=no 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 Mon, Aug 29, 2022 at 4:42 PM Paul E. McKenney wrote: > > On Mon, Aug 29, 2022 at 04:36:40PM -0400, Joel Fernandes wrote: > > On Mon, Aug 29, 2022 at 3:46 PM Frederic Weisbecker wrote: > > > On Mon, Aug 29, 2022 at 12:45:40PM -0400, Joel Fernandes wrote: > > > > On 8/29/2022 9:40 AM, Frederic Weisbecker wrote: > > [ . . . ] > > > > > > 2) NOCB implies performance issues. > > > > > > > > Which kinds of? There is slightly worse boot times, but I'm guessing that's do > > > > with the extra scheduling overhead of the extra threads which is usually not a > > > > problem except that RCU is used in the critical path of boot up (on ChromeOS). > > > > > > I never measured it myself but executing callbacks on another CPUs, with > > > context switches and locking can only involve significant performance issues if callbacks > > > are frequent. So it's a tradeoff between power and performance. > > > > In my testing of benchmarks on real systems with 8-16 CPUs, the > > performance hit is down in the noise. It is possible though that maybe > > one can write a non-realistic synthetic test to force the performance > > issues, but I've not seen it in the real world. Maybe on > > networking-heavy servers with lots of cores, you'll see it but their > > batteries if any would be pretty big :-). > > To Frederic's point, if you have enough servers, even a 1% decrease in > power consumption is a very big deal. ;-) Ah I see Frederick's point now, so basically the claim is that using lazy-RCU on servers might make sense to save power because CONFIG_RCU_NO_CB_CPU may not be an option there (networking throughput and so forth). That's a good point indeed... As you said, let us see v5 and how we want to proceed from there (as it is not too far from posting) . I do appreciate Frederick's review and valid concerns. Thanks, - Joel