Message ID | 20231025140915.590390-1-urezki@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2628497vqx; Wed, 25 Oct 2023 07:09:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEjgmbvuo3df31kDTCvX+b+xmXGvcdwQl0vBtg9uYWYjOnlr55Svmi/gLtIykD1B480b4k X-Received: by 2002:a67:c089:0:b0:457:c6d4:1279 with SMTP id x9-20020a67c089000000b00457c6d41279mr14275478vsi.5.1698242985272; Wed, 25 Oct 2023 07:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698242985; cv=none; d=google.com; s=arc-20160816; b=P4rtSth0E29ubgUZeP6QKtFO1hPw0u+hg06sIxAw7LdqwqfbCEN9mqGzXt1XWLV8jc UgoF2If4oG9ReK+kMSXt02OD+bois30/IcudSZFWw9bqT+z5KFDhOXf2e/MA7TBPCEYT xY0MT/5TEEh0B+ZfT3u2gYOteckGQtaYMDlvGH6a7Sts1kjCIjQn+LsX+c71JEVpgBqo a0Py4IuN3q/6T211fLBJXxY0lrSSZtUL2xOItxFc8uc7wYBaL1Wj9qvfmGomaBEXkLiR b9nXkNdOnS7TqChZzCcBzcrrUDMJdJvhrLRNkDNRpoSjd1a5szq/NRNDm4BN7kCKORqn LgKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wmEvOZOZBOhclOxlPn09a+GCZzFmuG5NCdmw689iQU8=; fh=4iZcRCmzpaCZKgp7nvxh/m3AX3kfm//yPbGO/jIXleI=; b=ZPWT9Uofq0MnU4bgpv3pjuh6kncB+8f4r+GeIJaNBBrGl1+xnJgwau1jp4Rkx1nBWI 1sTFX1vFGbicNmGLzzultXXjZJFyafJtADvWrMPfFQpwN6YJUEcjqk1SJNA9y29Xtm9A jiSrKWUmaWzq6KL8Pt6ShDNXZkHNtimDo4001yAZx5NXUM+OHgTqGxhdEjbnkglOx4AC pHr1oMpkMV/HIs8UGtR09DfRB2J6m4vGgaAMHbZd6aaFqjefVhtj6SLYjjeuOE73NZ9D gEiFPEtPNBvtv/bvLCuQJZpZ9ZotNjucK60qRjs79U+HEcyKd4Xy6xJBJXwg3XVjoEvm 9QnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eRPhSbEu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id c9-20020a0561023a4900b00452418c5e24si1226610vsu.203.2023.10.25.07.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:09:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eRPhSbEu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D741A8114EE8; Wed, 25 Oct 2023 07:09:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344614AbjJYOJZ (ORCPT <rfc822;aposhian.dev@gmail.com> + 26 others); Wed, 25 Oct 2023 10:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344597AbjJYOJX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 25 Oct 2023 10:09:23 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78261133; Wed, 25 Oct 2023 07:09:20 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-507b9408c61so7837219e87.0; Wed, 25 Oct 2023 07:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698242959; x=1698847759; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wmEvOZOZBOhclOxlPn09a+GCZzFmuG5NCdmw689iQU8=; b=eRPhSbEum2efFyRJsgKMGShGE3R7z/5EpI9qTfVvkk+gmh8vLfuyzJHOQu18qrjmYG IeXCOqa0eTdBxhPlCTRgepLi6Oe/KZAXU09+h/Einzj+okTwej/y0onp4HZIlZfQkFG/ F3n8CxNfSDGBkFlhngrVQF54ouGqvydXSU+zQRfqk+VRAvc9ZFt/NXSZ+GMDEx+ZkHJz Xb1xKZRoSrMo37ssHyOJljs7SBGQVrJZhJY4e8slCqD3BhDsz97+IGJxDoHhMgMeCfC1 TMNE4Nx8RDZCTdB/0eZNZHJ94MhoULtpyp+U+im5MHkNBdjrtQNsnGP4sPKSRltaZQ7E O3ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698242959; x=1698847759; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wmEvOZOZBOhclOxlPn09a+GCZzFmuG5NCdmw689iQU8=; b=hRHoaqQyKttM3vmZJAg6rL07j3slei3xsZ7RmSJtflwGmIFisZTGJoqfIAe6DQvUOk e6+lP4JITr5jkELAhoNjuAryIMdQEdViFdjgrgfo86Q+WRmYD66jhVfCbPjTy71I+2qI uRt/qZHCDUBXrTmTH2tPmHRv9qwb7nMJ64qCZqGd0XuxZho/korCgoHXBN/WqZWdPG99 8JPiwzfrhbLF4GbRq3BFy28o9VAF8hXgXf6Jh5xwQtnkA0oJ415c0NGGH8l74iycTbBk zHc5HqoKGOv5rqmilyo9mIwbbfolY1+6VpWyIVdK19YqVaZ19FvdHzwKsMR/62GNeVPW EMjw== X-Gm-Message-State: AOJu0YzvOL50ZV/D16ZYEOWRkyHVxxaZF719Qld2wBkDWZrTm8TBoh/C RuUlK4JQjqKGO2OkO+JDPHo= X-Received: by 2002:ac2:5470:0:b0:500:a6c1:36f7 with SMTP id e16-20020ac25470000000b00500a6c136f7mr11596559lfn.3.1698242958398; Wed, 25 Oct 2023 07:09:18 -0700 (PDT) Received: from pc638.lan ([155.137.26.201]) by smtp.gmail.com with ESMTPSA id o8-20020ac24e88000000b00507977e9a38sm2555680lfr.35.2023.10.25.07.09.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:09:17 -0700 (PDT) From: "Uladzislau Rezki (Sony)" <urezki@gmail.com> To: "Paul E . McKenney" <paulmck@kernel.org> Cc: RCU <rcu@vger.kernel.org>, Neeraj upadhyay <Neeraj.Upadhyay@amd.com>, Boqun Feng <boqun.feng@gmail.com>, Hillf Danton <hdanton@sina.com>, Joel Fernandes <joel@joelfernandes.org>, LKML <linux-kernel@vger.kernel.org>, Uladzislau Rezki <urezki@gmail.com>, Oleksiy Avramchenko <oleksiy.avramchenko@sony.com>, Frederic Weisbecker <frederic@kernel.org> Subject: [PATCH 0/3] reduce latency of synchronize_rcu() Date: Wed, 25 Oct 2023 16:09:12 +0200 Message-Id: <20231025140915.590390-1-urezki@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 07:09:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780736836429612390 X-GMAIL-MSGID: 1780736836429612390 |
Series |
reduce latency of synchronize_rcu()
|
|
Message
Uladzislau Rezki
Oct. 25, 2023, 2:09 p.m. UTC
Here is a small series that tends to reduce a waiting time of synchronize_rcu() call. Please note, this is only limited to a "normal" version. As for performance figures, i used real test cases and a synthetic. For example - camera app launch time on our Android device is reduced by 9-13 percent; - loading 100 kernel modules also get improved by 10-12 percent; - synthetic gives 30 and higher percentage of boost. Uladzislau Rezki (Sony) (3): rcu: Reduce synchronize_rcu() waiting time rcu: Add a trace event for synchronize_rcu_normal() doc: Add rcutree.rcu_normal_wake_from_gp to kernel-parameters.txt .../admin-guide/kernel-parameters.txt | 12 ++ include/trace/events/rcu.h | 27 ++++ kernel/rcu/tree.c | 152 +++++++++++++++++- kernel/rcu/tree_exp.h | 2 +- 4 files changed, 191 insertions(+), 2 deletions(-)