Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp76433rwb; Wed, 10 Aug 2022 19:45:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR4MPfmLD56csDALukOGstAbg3rw8bjC+su+tQV07n+c5Adc+qGRZLfF5z35E4LHsPWBWdyj X-Received: by 2002:a05:6402:278c:b0:43d:cd35:db25 with SMTP id b12-20020a056402278c00b0043dcd35db25mr28666468ede.44.1660185927369; Wed, 10 Aug 2022 19:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660185927; cv=none; d=google.com; s=arc-20160816; b=I+89WkNKjWd3ZpH89p1drm02zWaahqcIW4sF347q/Z0jnv09PQr9+GTp2XtJWdwqg+ C5MhePbmb+g9I8LphfP7uvclwaKnJNhqpIxD/hd/l9i7cCEtNamFoeYwkpdN2tuitOyV gHioBcu6qncStinwsNsCUnAV5tlBSkV5TpTsAtaDoSjfD85sLwnVCmFkGfOqoT7s3bHs dWutfuCwoqyh1oh7iTApZoOOtFi2DJyuHP3exvBrjSMAT/L8anEujjyGi5uByNWq9bzn Jl/JmU0ZQP2hRZ4kl4xAvNKMizWscwB9BBegeBloP9ron1MSK0VW9j35c0AopBx84ZGs zZyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=59BW7/Ip/IlB4q8qRutBL8VhwSHLJCviZn8DE3Eq3+M=; b=UO2ClK+KHU6X5YyXFKrMhgrHpADiSI8yDMEXxXl/icSHlqIsxhFQkVULWEQQXERqAd zULEgdyOn8yyFit4jxA0RrTRNJf5JuY//+fY7s9OSyVYWjvgED4m7ku/MYsWxEeXcZBY KH8WT+lejTGtBXLyyRN1rmfyyBKDhYCVxO3Ung1YfmcTuUugvlwc+GKVGcwFlZNFpWdc WcqR5hpBLy31eUjX8X9Q4+6isljBLPotwWLGDB+D4uPAgsTahQxVDW+Xo5+obIVEAvSr WNOf+uH9pIi9LzuBJcrvstszxcljHoBSk0kcfGRnvm4yGHOsRmEIiuSQGgfTTHY/9zSN 6dlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=g6Hrbi1S; 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 s11-20020a1709062ecb00b00727c6ac5e27si5239366eji.388.2022.08.10.19.45.02; Wed, 10 Aug 2022 19:45:27 -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=g6Hrbi1S; 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 S233797AbiHKCcD (ORCPT + 99 others); Wed, 10 Aug 2022 22:32:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233635AbiHKCcB (ORCPT ); Wed, 10 Aug 2022 22:32:01 -0400 Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7668388DE0 for ; Wed, 10 Aug 2022 19:32:00 -0700 (PDT) Received: by mail-qv1-xf34.google.com with SMTP id i4so12406895qvv.7 for ; Wed, 10 Aug 2022 19:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=59BW7/Ip/IlB4q8qRutBL8VhwSHLJCviZn8DE3Eq3+M=; b=g6Hrbi1SrgMQgfXV0cFES51r8PcZl3OXbTHxf6RmislSBdOpCuv3kcNzTTj1qmPPmA ZXM1Z6gib8ZDe8O9XcZrzXqhvxdfngB9TupfB5R1oVHUXeGScY2ZnPghgAWfFaPeGu6e atrhvF5e5/ByNWnbYZtWLOKzdieVRgw+1UWik= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=59BW7/Ip/IlB4q8qRutBL8VhwSHLJCviZn8DE3Eq3+M=; b=cSvgnMZ5cJiE3ip7h6W3iKST8WMkrJSA+mDYl7y+YBi/h/+3qZKFYahTVHAWwrDlbB wum9mzHZY/FfWW5nDIkZFVknyONjAbj5Bvt3AeIIAxDR2hkUahzo0p8HOYuLr/ZZH9RV yBWplb+xx5Gpd0K7H51XOlK0Fxs78UDRI/g48oLCq4v3bbhTiBNAev9PyuV5bnqBYEzh L9R/PRnSgcVQfgA47mNS3o2wznaSFN0NSEWJ01QYvg1y2yDyflrAQ+MMG8UdA4z5u5Cu 42bhb6cgIyB1B7zFtNfc0HEBuMC2RXNENOiJdJ8t7uIbPxPTmpWzsAGXd5m9cwvuCDMc uC3g== X-Gm-Message-State: ACgBeo0ZKVyWNehJHEJBko/7HjKdXH8CJUiyMuYWaafRQaJtfiIS7nJY VUle3IqeaPg0wjmuMxJO60ZZm4I4r6a9aw== X-Received: by 2002:a05:6214:a4f:b0:474:8b63:556f with SMTP id ee15-20020a0562140a4f00b004748b63556fmr26454295qvb.55.1660185119339; Wed, 10 Aug 2022 19:31:59 -0700 (PDT) Received: from [10.0.0.40] (c-73-148-104-166.hsd1.va.comcast.net. [73.148.104.166]) by smtp.gmail.com with ESMTPSA id t11-20020a05622a01cb00b0033c36ef019esm1038212qtw.63.2022.08.10.19.31.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Aug 2022 19:31:58 -0700 (PDT) Message-ID: <87663566-ed67-fee8-4598-13591f2f072b@joelfernandes.org> Date: Wed, 10 Aug 2022 22:31:56 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.0.2 Subject: Re: [PATCH v3 resend 0/6] Implement call_rcu_lazy() and miscellaneous fixes Content-Language: en-US From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: rushikesh.s.kadam@intel.com, urezki@gmail.com, neeraj.iitr10@gmail.com, frederic@kernel.org, paulmck@kernel.org, rostedt@goodmis.org, rcu@vger.kernel.org References: <20220809034517.3867176-1-joel@joelfernandes.org> <308db02b-b56d-2df1-ee33-7f66e6a85f63@joelfernandes.org> In-Reply-To: <308db02b-b56d-2df1-ee33-7f66e6a85f63@joelfernandes.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 8/10/2022 10:23 PM, Joel Fernandes wrote: > > > On 8/8/2022 11:45 PM, Joel Fernandes (Google) wrote: >> Just a refresh of v3 with one additional debug patch. v3's cover letter is here: >> https://lore.kernel.org/all/20220713213237.1596225-1-joel@joelfernandes.org/ >> >> I just started working on this again while I have some time during paternity >> leave ;-) So I thought I'll just send it out again. No other changes other >> than that 1 debug patch I added on the top. >> >> Next I am going to go refine the power results as mentioned in Paul's comments >> on the last cover letter. > > Side note: Here is another big selling point for call_rcu_lazy(). > Instead of _lazy(), if you just increased jiffies_till_first_fqs, and > slowed *all* call_rcu() down to achieve the same effect, that would > affect percpu refcounters switching to atomic-mode, for example. > > They switch to atomic mode by calling __percpu_ref_switch_mode() which > is called by percpu_ref_switch_to_atomic_sync().> > This will slow this call down for the full lazy duration which will slow > down suspend in blk_pre_runtime_suspend(). Correction while I am going on the record (got to be careful these days). It *might* slow down RCU for the full lazy duration, unless of course a fly-by rescue call_rcu() comes in. - Joel