Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDC4DC64EC4 for ; Wed, 8 Mar 2023 15:10:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231447AbjCHPKX (ORCPT ); Wed, 8 Mar 2023 10:10:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231942AbjCHPJ5 (ORCPT ); Wed, 8 Mar 2023 10:09:57 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B96590B50 for ; Wed, 8 Mar 2023 07:09:56 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id u5so17926715plq.7 for ; Wed, 08 Mar 2023 07:09:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1678288195; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=CGgrbtL0osvGwqCEy5S6PgImlMHlY6fpkJDxu/3Zc74=; b=Cy+UsOiy8Kw+/Y5nUfo1zVaKbgnTQPV5QrFPFPlARLixMPr8kzSqNibag5C/pX8Lka wj94WV73tB+keA2r68yvUeg1nIE4qi47loC2k8XPxk43I3l1AjIJsu7Y3qiqq/VDHSVS F2Vn0biJWfJ2IrUwo0NsyfhSsBCRQG46yJJHE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678288195; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CGgrbtL0osvGwqCEy5S6PgImlMHlY6fpkJDxu/3Zc74=; b=rtizIQwvjnl2RbaJNotSLgkasqcqP3OcYGbTdXiXSTZsJslVxLJ87sZnn2iTkDA+iM wz/ceX8i+J9gSES4Zijk4vGC50oKPydH40ioimrXVoLQCiYDTA2XD/jPelhNNXT+xFJQ 47q5BWqTk25N18d4H92fE4QkS4X2pY6xUKAtncM9r+StJrxcrEBHozrnBH/GAgX7Wsub x1Npz2PiTaTdj+CknO7jlVM4KzaHVHUx6JiLquSdO9q1m3sDLH5gtLbXRAAVucWuOHGW zFoUA5tZaihjLTWpxyobUtbyrkeBNtlilEoAvZYO9D4nFgHo3l3Ze1hHrmFr5zc/nsz9 jmHA== X-Gm-Message-State: AO0yUKVgbQvkZcjIiaATF4KWp2BRPQVlg6DK8oUtqxFoV0aTrEdsHdtV wS1IKpQijvcteIkxHZNOZU/88Dgdv6+I+u+NiYk= X-Google-Smtp-Source: AK7set+TDA4sUlwdVLO52Tw5fNk3QFkY9MHeImXJKiiUBwXcbYr+lIVs8Vtq2XaesY2ALOkZ3MfFtA== X-Received: by 2002:a17:902:d4c5:b0:199:30a6:376c with SMTP id o5-20020a170902d4c500b0019930a6376cmr20622902plg.68.1678288195139; Wed, 08 Mar 2023 07:09:55 -0800 (PST) Received: from smtpclient.apple ([2600:1010:b049:5d6c:a98c:abbd:1cd:6532]) by smtp.gmail.com with ESMTPSA id jh5-20020a170903328500b0019a983f0119sm9941729plb.307.2023.03.08.07.09.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Mar 2023 07:09:54 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Joel Fernandes Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v3] rcu: Add a minimum time for marking boot as completed Date: Wed, 8 Mar 2023 07:09:42 -0800 Message-Id: <4069DA96-5E01-4E70-8A04-52543A43B3BC@joelfernandes.org> References: Cc: linux-kernel@vger.kernel.org, Qiuxu Zhuo , Lai Jiangshan , linux-doc@vger.kernel.org, "Paul E. McKenney" , rcu@vger.kernel.org, urezki@gmail.com In-Reply-To: To: Frederic Weisbecker X-Mailer: iPhone Mail (20B101) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Mar 8, 2023, at 7:01 AM, Frederic Weisbecker wrot= e: >=20 > =EF=BB=BFOn Wed, Mar 08, 2023 at 05:52:50AM -0800, Joel Fernandes wrote: >> Just to add to previous reply: >>=20 >> One thing to consider is that it is more of a performance improvement for= >> booting in expedited mode to fallback to normal later, than a bug >> fix. Repeated synchronize_rcu() can easily add 100s of milliseconds and t= o >> remedy that =E2=80=94 a conversion of the call from normal API to the exp= edited API >> will not help. >=20 > 2 things to consider: >=20 > 1) Is it this about specific calls to synchronize_rcu() that repeat a lot > and thus create such measurable impact? If so the specific callsites sho= uld > be considered for a conversion. >=20 > 2) Is it about lots of different calls to synchronize_rcu() that gather a b= ig > noise? Then the solution is different. >=20 > Again without proper analysis, what do we know? Again, no one disputed that proper analysis is needed. That is obvious. I wa= s just responding to your assumption that if boot is slow, user space will a= lso be slow. That is not a good thing to conclude because there are many fac= tors. Slowness at boot may be considered a bug, but slowness after boot may n= ot be (say if the user care mores for power later). On my side I am planning to dig deeper into our boot process, but it will ta= ke time. I hope Qiuxu can do the boot analysis on his side. Thanks. >=20 > Thanks.