Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp332676rdh; Thu, 23 Nov 2023 05:23:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8bV25N+ZojhsgKkibI9qr2vDl2DnRMad7OmJgQtCAuo6flxw+cBmVn2wQpQkZKgl8YMlW X-Received: by 2002:a05:6a21:328b:b0:18b:558e:9e2a with SMTP id yt11-20020a056a21328b00b0018b558e9e2amr3714014pzb.12.1700745796873; Thu, 23 Nov 2023 05:23:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700745796; cv=none; d=google.com; s=arc-20160816; b=w1Pv564TFXsZ60bcPN6P+xKHlHjWlfvU9gMHKGmQHaP1/jDkGyYH+wiXjQtZNrVgpO wx49CE8gfW+sPmw3GMsAW7qcTbWXWdrDx24sAznnAUFwEdA3ZpaImsBPWfC+MeSEZhtA QTivCNj4O8VR+WMugLDhJwmqWLSBCspPIsoD4tKvdMbLLhu3MEGr/OhlcEa+x5+E3YBq rgM8nQ6JKDXQZMHVqxb2rmlN99PB5pOmhwXrxDviUExwCKUJJqbfrrGqa0sOz51sot/p tBCBVtaZM2/mKIbwzNrQRZULAdtB/IFg0ytO3oZ/wvpTVgJkEEhgG+PlT41C6gUP++CA t3GQ== 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=fmeSlyRRAZmkiADOOVUeH9QDd85AntrliLGP54hloZQ=; fh=KUAkN980DdyIz/hgPa45P1Z1JcjKkhAgm3pFymsISj0=; b=WAL3S3kxe8fiNDw1bseeVFkOh2R8dp1QRlXgmWJvWck2eX1UhCS2ngpGAkHJ4/yyob TYrOb1HC6uLNCW6840jOBjStk9g+h7tHXX7uPw7OHh8IQ+c9Fz0w6yJrEzXV/YuBQm2l tYeO7G7QtPRjdmcad9i0/O2XMf5unt6ho4orp/b6hs1WZC2tj2q95T44ihifCYszy/CC /qCt/zLKnJwQm0U5p1Ph5NhkkmngLOF4MfpaIju8LxIkYtreFePtxwickD9MOIxQ89Xh SyTmYGjoTTGhxj7tZ2c684ipntpFmkSs4iqw5h6TcbbB25ktumJxAR/cTlP6o4/YLD6+ 00Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=ADTOikpD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w8-20020a656948000000b005c1cc7273basi1406533pgq.257.2023.11.23.05.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 05:23:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=ADTOikpD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D29E58296F23; Thu, 23 Nov 2023 05:23:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345438AbjKWNW6 (ORCPT + 99 others); Thu, 23 Nov 2023 08:22:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345271AbjKWNW5 (ORCPT ); Thu, 23 Nov 2023 08:22:57 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2F3CD41 for ; Thu, 23 Nov 2023 05:23:03 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c8880f14eeso10923481fa.3 for ; Thu, 23 Nov 2023 05:23:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20230601.gappssmtp.com; s=20230601; t=1700745782; x=1701350582; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fmeSlyRRAZmkiADOOVUeH9QDd85AntrliLGP54hloZQ=; b=ADTOikpDonUTGJzYT3drdkqttCmqLQ03H+ys9gu/Ec1wVH0tKjd3w45LQos2oceeZG 8PPFkrhWgFJJoUp9uBV3yo1tTXGDITUwAmIXHqemNBp4GVxHXo+I/o3HBYhj45BYNq1P FuSJPV+0GUuSCfYz750+xZQTFybs5VyNWvPhQOnD6FAXxSjV4lN03EC5Cymkhl32fx0K cFGYDkuC5R7xBlrwhQqg1z3DUu4CObHW/dLMI7D3QpdehYHcmlAYZD5iYgXyCSRqWK52 omFbPEbZmiGLWL5Korm0WPFs1OAPNnOkPu99OaP+7m6VYuFb608uXyZzo/Q/M608ZiKl INcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700745782; x=1701350582; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fmeSlyRRAZmkiADOOVUeH9QDd85AntrliLGP54hloZQ=; b=DNG91HhLLZUoTYbm29BCSxDJ+boLoJIJhDP2v8Omd8AtXj2g452/xWqgFPirtuibSG UPdp1BR2HAHVE2fTi7EyRTJqB2Sgs1nPg40Dy2UP1ty4Wi4zZA1ZZYucNnHiWoogv+sP Brz8cj95uyg5AlfQ+Bss66vemk/6irt28DBnda6ZjPIY7WBCQ2jX6L76V2TfIUChvf3f 7BKmCgF+4nkVMz03hN+cI2PggnAIRG9O0RtP3ihDCJ7SEaHFUt9FEUCDmuCF0BhGp4ed yA+1VhHvW8JcByX19/8TRd0wkusTMY6k9vo6+h4dtJMnse+3/hg3mzcVmoZB2IgUWK93 fieQ== X-Gm-Message-State: AOJu0YwaTT7fvJ35+g6aZXGESNsWs6nY25zPESU/Vr1x0GiZ5jNVzbYv KNa+ZkCGkWKeENET1CYliHKEuA== X-Received: by 2002:a2e:920b:0:b0:2c5:23e3:ed11 with SMTP id k11-20020a2e920b000000b002c523e3ed11mr4198294ljg.30.1700745781933; Thu, 23 Nov 2023 05:23:01 -0800 (PST) Received: from airbuntu (host109-151-228-202.range109-151.btcentralplus.com. [109.151.228.202]) by smtp.gmail.com with ESMTPSA id j25-20020a05600c1c1900b004076f522058sm2738021wms.0.2023.11.23.05.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 05:23:01 -0800 (PST) Date: Tue, 21 Nov 2023 22:17:52 +0000 From: Qais Yousef To: Andrea Righi Cc: "Paul E. McKenney" , Joel Fernandes , Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , John Stultz , linux-kernel@vger.kernel.org, rcu@vger.kernel.org Subject: Re: [PATCH] rcu: Provide a boot time parameter to enable lazy RCU Message-ID: <20231121221752.wphdk3xqgoii6eub@airbuntu> References: <20231121205304.315146-1-qyousef@layalina.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.3 required=5.0 tests=DATE_IN_PAST_24_48, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 23 Nov 2023 05:23:15 -0800 (PST) On 11/23/23 07:28, Andrea Righi wrote: > On Tue, Nov 21, 2023 at 08:53:04PM +0000, Qais Yousef wrote: > > To allow more flexible opt-in arrangements while still provide a single > > kernel for distros, provide a boot time parameter to enable lazy RCU. > > > > Specify: > > > > rcutree.enable_rcu_lazy > > > > Which also requires > > > > rcu_nocbs=all > > > > at boot time to enable lazy RCU assuming CONFIG_RCU_LAZY=y. The > > parameter will be ignored if CONFIG_RCU_LAZY is not set. > > > > With this change now lazy RCU is disabled by default if the boot > > parameter is not set even when CONFIG_RCU_LAZY is enabled. > > I'm wondering if we should make this enabled by default if > CONFIG_RCU_LAZY=y, so we don't break the previous behavior, and those > who want it disabled (despite having CONFIG_RCU_LAZY=y in their .config) > can add rcutree.enable_rcu_lazy=0 to the boot options. > > Thanks for working on this! Sure, thanks for having a look! Cheers -- Qais Yousef