Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28990495rwd; Wed, 5 Jul 2023 05:51:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5dXt3oDVOxXe0RkrG3uUsFIjbTf6t3Km5rBJJcLikcLeupsZ5D1PBct2WbptPa62JXiIvl X-Received: by 2002:a05:6808:199f:b0:3a1:e7ad:11a2 with SMTP id bj31-20020a056808199f00b003a1e7ad11a2mr15165285oib.18.1688561487751; Wed, 05 Jul 2023 05:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688561487; cv=none; d=google.com; s=arc-20160816; b=MP3zoEovJuDSnnzuPPgTkW3Ce9brZMM7R/KJrgHouddNtL5xXAtZoHjo4eu4KIuuSm OE8uMNqSr/9ibVbPjzkmufyFPKhuEVSsZYiJIcu6aNV/xxUiVvQD/pLXVjhVGHx1tjnr BC3NFpCsrRQr5pKBdU0sFSWKRpl0jL9oFNYj3Tpp/WE+ErTgoUq7fAPNi9WnPJSAv/ku NniiR6KuCMJvwXGDvJ/CBv2X52Bya7yf1EM5XOUASRvicz6TMD3fFOlw0PaZBn9V4HPU 7/Qiu9mKdUmLVLuGTY0g6TN9bqdFO/HERVDDlMvvbOer17sGyNHi+kqDJ2dHff4benQu NyOA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lrCdHjBShpdieuih/efGOSNgQjoM2v76l4pzX3zNrO0=; fh=9pCg5xDKYlEuqfCgk8qzl23ngEYjlfpSQ7OQY2Rdb6k=; b=OjKtRG9mmRIgZqar64XwAk/c04DHVBWIBDMAqMZd14dA5/zCvb2LrV4rAHG7gzBeVC zISrNZJNyxtrV/oiaoIoBf5752tctovYPY4uHzeOHnhfT9oRhlR+uhJJXS1/18qAlHCX 0AKSY30md3CzYi5ipxRyuBEqG2q6upyxTcD6OjlNoL9/onKCxxE9ewgG610XeZ69Xo6j q5QmZhx48qflJtqLRW0HK8bgkZu/DZpGoCI4Qh12ydfXlYDCKT+7WxqTMdUuCyK1ovdH /D30lW9CmPeVC2EOsjuoU2Ba5Rq2xhP+uYbE2F09rhqFlV/pRUR2ClKGAKE65BUcvTX3 FrsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KgPbK1R+; 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 b15-20020a630c0f000000b0053084a794f0si23544296pgl.290.2023.07.05.05.51.13; Wed, 05 Jul 2023 05:51: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=@kernel.org header.s=k20201202 header.b=KgPbK1R+; 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 S231769AbjGEMlM (ORCPT + 99 others); Wed, 5 Jul 2023 08:41:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230268AbjGEMlL (ORCPT ); Wed, 5 Jul 2023 08:41:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ADD4116; Wed, 5 Jul 2023 05:41:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0129161503; Wed, 5 Jul 2023 12:41:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0202C433C8; Wed, 5 Jul 2023 12:41:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688560869; bh=Q7lihklVNA978w7esJOsxnmRuuyHw/4jy8/HtRgD23U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KgPbK1R+lK3ukRLbUfyqgffhL5OKUT+r72u8axNjes6sIDlmKKm2yPVKP2jHv5PFM DhZMRnGTiEhynTpthgP+aOO5ltcgFqyhNP5gZ49L4A1LetkOxOxEZ7vDQooDLNGwJQ oqQp2oUBpFYw+plcqxAdQqQ3UuACagbMqHa9SeFaelxsfvhz8JuyUjB094wvyAjYke 3npJw1S50ezR6vhdIxSmhuGXYVuQFuydfdjtbY5fIdLAqw5cREcMLvoAbgERooeoxQ 3Ah16NmqPBtABEnxoC5oWHep8X0u6dPKZH6bWiGdJKBKiUVOJPnfw3n6wGwH/n2jyc MseidTfhd9Ksw== Date: Wed, 5 Jul 2023 14:41:06 +0200 From: Frederic Weisbecker To: "Paul E . McKenney" Cc: LKML , rcu , Uladzislau Rezki , Neeraj Upadhyay , Joel Fernandes , Giovanni Gherdovich Subject: Re: [PATCH 0/9] rcu: Support for lazy callbacks on !CONFIG_RCU_NOCB_CPU Message-ID: References: <20230531101736.12981-1-frederic@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230531101736.12981-1-frederic@kernel.org> 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 Le Wed, May 31, 2023 at 12:17:27PM +0200, Frederic Weisbecker a ?crit : > Hi, > > Here is a first attempt at providing support for lazy callbacks on > non-offloaded CPUs. I have measured interesting results on my machine > when it is mostly idle (just an idle ssh connection kept alive) with > a gain of +10% idle time. This needs more serious testing though, > especially to make sure that no performance regression is introduced. So after refining my measurements, it actually doesn't seem to bring much. Here's what I measured (it's an average after 100 runs): * 0.01% more idle time during a "sleep 10" * introduce 3% performance regression during an "scp" on the tools directory of the kernel source. * Brings less than 1% performance improvement with a "make" on tools/perf It only brings unconditional improvement when rcu boost is enabled (callbacks offloaded to rcuc) but still below 1%. The reason for the performance penalty is unclear, I initially thought it was due to the batch execution delaying other softirqs vectors but it doesn't look that way after all. So for now I'm only going to re-iterate the cleanups in the beginning of the patchset and I'll wait for a good reason before ever proceeding with the rest. Thanks.