Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp585716rwe; Thu, 1 Sep 2022 04:51:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR5lIIkV08wcYAuhZndC9lEqZA/ech+NH+glRqXqCwOG64UFIid9f67FkleSNLL885re3WqZ X-Received: by 2002:a05:6a00:b8a:b0:537:f81:203a with SMTP id g10-20020a056a000b8a00b005370f81203amr30889359pfj.80.1662033112982; Thu, 01 Sep 2022 04:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662033112; cv=none; d=google.com; s=arc-20160816; b=TldqEJBT8+i84O29QjdUvNw2Z6oSqENvsaYi2wL5p86rUoYPuBym9qocqsqDkhulDS DlFtSy4JKXxZhpeEStyztYzhgoHFMDZ2CRk0jT63kIHCO7th76izz0ARRhgBuZn9idIK hrqyDPGKNj82+ato0kkLA6ccE0SuYXfODysPMSleq+6aogNvDzRx51Ce6LKuE9I5fv+Q 7Bkuw1oDcRyl3ywpQmnEbiCJLfF4Mqfa6y4DPpyVuoPTuDRLzNtcvxIReTeEW5rxlwqs VtXFO5JpcytOal8SJEXZdgN9bO+AtNKsuoZ/97LRuKpxnvIGIw7lFuVo74bzqrH7BtCp tlyQ== 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=iuQGkBalyOz1qLUZWDEEMHwJM3T22erFvS0/1kpTc38=; b=zcOOqDVzZv5samkT8Oz/W/h3cVZjL6z0Pvs2ssXw3PDAf5tDDrzcQKlLr1sSAFs+Ib WQkI116NkAZWqahxQtk6d2dKp+AS9LdoCn3maT9ai5b8KCmLlrUikszh5dcGiqPgUCUP luDNKRlTEkDeHVa+ZjCIRXzV0KNi6+tQE2+Y/C/FQXnDGc9XGw5OC8dOOzsPd3t1lU2O VIZSzNi6o1wR9tYhdNL0OjREHtEXW16fIBcKnqxmXLEWbwz6UFAo3OTYaaC+uJtNg0aa tbKIQXlohpWGB9FPwgxwvvpZDY0m58EQBtwHtpX0r5Q4L7PtnoMkb2flh/Gn8My70R9H gUNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=junecTn4; 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 on13-20020a17090b1d0d00b001f4d705dbdcsi4625415pjb.80.2022.09.01.04.51.41; Thu, 01 Sep 2022 04:51:52 -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=junecTn4; 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 S234002AbiIAL34 (ORCPT + 99 others); Thu, 1 Sep 2022 07:29:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232877AbiIAL3y (ORCPT ); Thu, 1 Sep 2022 07:29:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C535B48; Thu, 1 Sep 2022 04:29:52 -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 F07EEB824F5; Thu, 1 Sep 2022 11:29:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B578C433D7; Thu, 1 Sep 2022 11:29:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662031789; bh=DjYCxepA2d0Zh1cPmPtLxRdp/vMrxB28w9asViiX7Qs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=junecTn4Ih0IUcrqTCrMjncSBOcDJhRNTLuuo4o1gEmRQ7OElTwICJY2m3CDL71yF H8C4QHZr9nEy4FtqZPNMpSJyIl5KpJDUU3XzSCiNEZVQpTsB511StY4tAMOfrAOrLi 05TGVfMYcWDI5zfo/qsQK8yzbVQj8/rQMgb5MqJV53/Q11nyF4BRQ0RI5TQWjZMiwC l0BiVDAU2Q04Chpx1oWCDh5asLnM3OytkYPuqnda/Nmh9jpaWrzUWeD9iKghfRkgqj wBIxdSdaZr+8mUH+p/zwj9zmfMI7aQRgKfiHnkmzqveJXeU9UDVKsWrSwBvBAOUMD2 QDGduz4pKB6iw== Date: Thu, 1 Sep 2022 13:29:47 +0200 From: Frederic Weisbecker To: Uladzislau Rezki Cc: "Paul E. McKenney" , Joel Fernandes , Dietmar Eggemann , LKML , Rushikesh S Kadam , Neeraj upadhyay , Steven Rostedt , rcu , Vineeth Pillai Subject: Re: [PATCH v4 00/14] Implement call_rcu_lazy() and miscellaneous fixes Message-ID: <20220901112947.GA105556@lothringen> References: <20220829134045.GA54589@lothringen> <1f7dd31b-f4d0-5c1c-ce28-c27f75c17f05@joelfernandes.org> <20220829194622.GA58291@lothringen> <20220829204202.GQ6159@paulmck-ThinkPad-P17-Gen-1> <20220830105324.GA71266@lothringen> <20220830114343.GS6159@paulmck-ThinkPad-P17-Gen-1> <20220830160316.GC71266@lothringen> <20220830162244.GA73392@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 Tue, Aug 30, 2022 at 06:44:51PM +0200, Uladzislau Rezki wrote: > Hello, Frederic. > > > > > Although who knows, may be some periodic file operation while idle are specific > > to Android. I'll try to trace lazy callbacks while idle and the number of grace > > periods associated. > > > > > Everything related to lazy call-backs is about not waking "nocb" > kthreads in order to offload one or i should say few callbacks > because it is more or less useless. Currently if incoming callback > is the only one, it will kick a GP whereas a GP will kick nocb_kthread > to offload. Not sure this is only about not waking "nocb" kthreads. The grace period kthread is also awaken in !NOCB and has quite some work to do. And there, having a server expands the issue because you may have a lot of CPUs's extended quiescent states to check. Also in !NOCB, pending callbacks retain the timer tick of a CPU (see rcu_needs_cpu()), and cpuidle relies on the tick to be stopped before allowing the CPU into low power mode. So a lazy callback may delay a CPU from entering into low power mode for a few milliseconds. And I can observe those retained ticks on my idle box. Thanks.