Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3539113rwe; Mon, 29 Aug 2022 14:05:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR4QndkK0VT2d3NT5JCBicQDV3I8aUDimvl3GBZ4ESCbxg495Q5rx3DKMF2IwQjH90lUcTr8 X-Received: by 2002:a17:906:99c5:b0:73d:70c5:1a4f with SMTP id s5-20020a17090699c500b0073d70c51a4fmr14253093ejn.302.1661807112468; Mon, 29 Aug 2022 14:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661807112; cv=none; d=google.com; s=arc-20160816; b=SJCzThyDYrehZTwsnAPcZFoFJv2R/l18T2M1iLT5s05p9Pffl8agHpQwBhVAaTQnnP meIL04ECxklvqk5EiMwS9Yz16uczgTQO7Pv8+mwnEEpp/MPo+2EtN+wGyFXNcA+Nxv2f 7zQmzl8iRgWbDg2B4ml/EtVk7LhLNaWgOMSs+uVZEsqWU9i4tIii/dNWKCZQGo9UylUw zTRjDLnhzM2wspYuvwjJ3mKHK35NynhT5YwqT8FLdiNeoNfbginz4RP10YgUzcNoZUKM BhA6AelfAy1JEbqjNoArA8UTE/u2XSsKbYDzm0W39KtN6F6MbTxY3EVVlTv7iP69oaVq hSfA== 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=uehDEJmk14FaWwUbndYVxyH5sWJ/kV9Tc6/uR2LrrsY=; b=sWRjGfVeveeNvNefLerWUjwA/mP+XGuMK/jhPNoXUJzU9iBI1cxX4KX4S5gk6PnCG7 S+shZeHsYdCa7z9djADvwMkwnaXDbJJSAln60xi9ClHs4YTWdOFMYgLwQonzaqdP1sOo in81B8CiQ2qWk7jTYRr2afAMMvWaalgd6CXbvZoLG7U2+a9djOmw1GChtrnuvPXA+vjT xdK4qAi/A14c3Ljq9LDcR0z1p8WQ+eqzDcH0Xrsw49LUfgJ+FX+nnfzKA0O/Av0KNdjg TvbsiP/NiM9IB21iiodW/iywUr0IhBsq1Spa0Xa1GXP3u7Fa2MwlCZT2WrZarP4YswfR 4q1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iZ4I7yXc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l21-20020a170906795500b00730ab71fb4esi7973314ejo.561.2022.08.29.14.04.45; Mon, 29 Aug 2022 14:05:12 -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=@kernel.org header.s=k20201202 header.b=iZ4I7yXc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229975AbiH2UmH (ORCPT + 99 others); Mon, 29 Aug 2022 16:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiH2UmG (ORCPT ); Mon, 29 Aug 2022 16:42:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8743181B00; Mon, 29 Aug 2022 13:42:05 -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 CE603B8119B; Mon, 29 Aug 2022 20:42:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A9FAC433D6; Mon, 29 Aug 2022 20:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661805722; bh=OBcGiRNFwXCZG7Ywe6tMUzBA7pJx2biK6lrBMOUvG3U=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=iZ4I7yXctAwuSWtOO41cAIY+O8fMhJOOj8NVEwkEHiq/aC5wMNTQjDKY4kxTJVl79 9BOXuojHyCB2Mdrr0HD/OuR19UHlOXzvT+GxDI39omqEgMnLRA2Kwnf20WMnn4Q692 qHKNhEOgvQ/qynwf0BztOA2mwuA76YW/5/RuDoMVn/4c8wUNVkTXZtuedX7UOXgUjD 0VRmBFucxJDRceWzUrmBDvkN72BjlOV0DHCChDe8bKMY5O5FeD+CP4Gjh3yEmEVzvm 5Fr9/A3Zp8bFRmgd2zyxY5oyvgvqK1fR+v1PjPsQlAAsIEDZ12qs1LM8v9xvJkVTct BDuQiuY6axNZQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 289465C055D; Mon, 29 Aug 2022 13:42:02 -0700 (PDT) Date: Mon, 29 Aug 2022 13:42:02 -0700 From: "Paul E. McKenney" To: Joel Fernandes Cc: Frederic Weisbecker , Dietmar Eggemann , LKML , Rushikesh S Kadam , "Uladzislau Rezki (Sony)" , Neeraj upadhyay , Steven Rostedt , rcu , Vineeth Pillai Subject: Re: [PATCH v4 00/14] Implement call_rcu_lazy() and miscellaneous fixes Message-ID: <20220829204202.GQ6159@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20220819204857.3066329-1-joel@joelfernandes.org> <20220829134045.GA54589@lothringen> <1f7dd31b-f4d0-5c1c-ce28-c27f75c17f05@joelfernandes.org> <20220829194622.GA58291@lothringen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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. ;-) Thanx, Paul