Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4071750rwe; Tue, 30 Aug 2022 04:15:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR6c/SNEWRA8z5xonb23t83Lpr3UqoCdmwxTZ81+6OFomRXI3ULuksPx4lVPbGHSWWB6qqLW X-Received: by 2002:a17:907:1c23:b0:741:8389:12e8 with SMTP id nc35-20020a1709071c2300b00741838912e8mr7008033ejc.131.1661858129869; Tue, 30 Aug 2022 04:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661858129; cv=none; d=google.com; s=arc-20160816; b=NWYPsp7GgpxkVdPkF2G7Jfu8CyBuK09eC/8tIJLVovZ0Cz2Kc2PnG6gv9NcyWPvM4V jzU4jAwjYUtilwQkrJApljX/GPT1GTEvp/Lo9hIyivXVfY/cSqMtnkkZb8aAGPORlqF1 X/KBixrRaGPN7HRveoKq90McKzph1b9HAHD8Mca/J3xEsyhxsEB8tntaxVwT/AbtCioz Rjotdu+qadM1bc35SKYaqCBqu1BZsH3u/L3SJ1PcIN25XjV5bV5Wo3J0lPsjwqIOhdqg iO+bJkOkaS2C4YMjXP9DD5tX9S5TH1qXQyibhwdItFEbYSJjc35AUkJ61SuFmnkFr4wJ yTxA== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=5sR7w6DPG3mX0TT6c/WRbYRcUeWFQFsKZG+f8PY2LSA=; b=dpnUCvVwxEd2IObVNs44sCW21c0UVh8SddvIVZ61QlyrTE/SCZ3CVEM4kvtjmzDbwk MbOfVIpl0PViBJzt+HC7kASg8dAC8nJWAHOeEOUx30GCvKU0RVA46JLGc1TVL5qpY83J UhUb+qNCC5SncJnu93pmn6+Re7ecRH02z/DyNWfhgxp1ipEYsLaUKSHxkTidrSnJgN+b sDrnNYoKvaKUEBeWdyJuJpee6szfipb71U6BXxxBPFjQ7DYE+4O1UH+bGbccMP+df1nK JAgBg4PFhfwHGX7ViP54ZrswltwLIMGdNpafcZS053o3d9SKvu1Ydb+OMs7QLVuOV9sg gYNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xw104m07; 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 cr2-20020a170906d54200b00732fa9d3df0si2370529ejc.795.2022.08.30.04.15.04; Tue, 30 Aug 2022 04:15:29 -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=Xw104m07; 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 S229988AbiH3Kxj (ORCPT + 99 others); Tue, 30 Aug 2022 06:53:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbiH3Kxg (ORCPT ); Tue, 30 Aug 2022 06:53:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD4C32AE13; Tue, 30 Aug 2022 03:53:30 -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 A9683B80CAE; Tue, 30 Aug 2022 10:53:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2E70C433D6; Tue, 30 Aug 2022 10:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661856807; bh=ofan/VoCA8fQBPr7dkw1KzvWzkg3kfS1WZRBqvhhND8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xw104m072l6dL7s5Whkjd8J+vTSXkgEqjZ9EVm7G3jtX1oR3lJdEsJOvQza/mfa/R ylSfefsM3HsyQcRnf3NeoBByXzgLWXhO8V5NhnYXszNSnxW5dBxRkroRrLjLcYwEz7 eGV64yfb6ymytIuvrqHit8J6TTsyU/IMnEUI6nDxNq6p2/WiLc5lLO6KzjhODK37+Y mhZAf+ieQM4bhP/AoW3VQLlm+v6u+oH/68H1OA+5+47i4gcJpZj8WZidacbgefCpK+ +Mm6/oB86objx0QEdsYbn+RWtfKVQvu50VNKfFADxOD3joTDr8r6KomsQmd3KX6n5s UHutHLLcvY8bA== Date: Tue, 30 Aug 2022 12:53:24 +0200 From: Frederic Weisbecker To: "Paul E. McKenney" Cc: Joel Fernandes , 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: <20220830105324.GA71266@lothringen> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220829204202.GQ6159@paulmck-ThinkPad-P17-Gen-1> 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 01:42:02PM -0700, 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. ;-) The world has enough servers, for that matters ;-)