Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2095945rdb; Tue, 20 Feb 2024 17:54:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUnzYCxIwCGSqmlwJcaTo59Apqip1cgqpUzbmafy25Xxqmi3kJoI0hIlfEfcRGpQ84NB45V6hWAGAhDAyPJBBMrxTsHoZv5WR2vwDptHQ== X-Google-Smtp-Source: AGHT+IFVZwfpuJrDf5M54Q+x9wJmM5dKZq+Y1VgWmcVYbDU6b6xKNSvRSiKBhXEuuH1tkNogij4M X-Received: by 2002:a17:902:bb17:b0:1db:ecf1:3b67 with SMTP id im23-20020a170902bb1700b001dbecf13b67mr5788205plb.66.1708480463518; Tue, 20 Feb 2024 17:54:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708480463; cv=pass; d=google.com; s=arc-20160816; b=nDZxYJLsbHEii78hcPJtvvPKwWwJHJbBkswdxN1HnvCvI9jChDqhBjCvb1lNdGSetw F2bhM5kpL62pgdvwGD3BA5FImgD/P0v72fbPJt7H8fvRyPwaaYRCE710ujCaf19JlwoZ mkHEcQzOUYCWTJQ2Fo7AS+QOGJ7trryCeRv71YmWx1zYw8gbmmWSwLaz355xBE+ybJqv EuDVgqVnFZ+eEODmMHdSNTQHFMdEgPavrTM96OM8xM4kU04e80y90UkKt+HqliQ5/AsO MJ3t96bGTeGDKUVhz5fLBR7IDpvdLUZux/f0P9Bw/Yx0PuoZOPw20eywXhrFWmDvkvMI zdxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=gnnLWNy+YAaXWSwVfQqgip/s8ad/gQf2cYCr7xuNLrM=; fh=785dg44DIpLZJ9M7c5EKuVY+o2EwuX9e5Yug9Fb6PIw=; b=iUtAfUyZCcgVe/qLlO2LOf9MqYIqcsK7BO0AqtChh2SBco5b4Jjk9F0ijrM191l2AN zW+mT88YIv2XxCrxJfzC6VFII1yv1E/KoSr3UBQEvycE7SLDru9MPG29DAeM+jRrYUJ7 j7HvMDhpLjl/AYl/1BvOMnIXnpbDnzC8ViLtlZNh9Psv2rxHykuHvqbMxvff7H2s4Bwp D5V52C+AW9lZHZVnGtK1Dj9UmSuLda5WdCgKYM+jRDXQGpD2AyYtscbKE1cQP+RsA523 qTPJnQl0GYGHU95KQB4te446MWY8/p2C0h5fOsYlxCc1efaf1iCiFJPhSH6NCyZ0Vvq7 g8lA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qv6zTSYt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id im9-20020a170902bb0900b001db2c70dd28si6835369plb.477.2024.02.20.17.54.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 17:54:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qv6zTSYt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 511F8B23944 for ; Wed, 21 Feb 2024 01:54:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF4B46FC8; Wed, 21 Feb 2024 01:53:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qv6zTSYt" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9A6A63DD; Wed, 21 Feb 2024 01:53:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708480435; cv=none; b=U0B4jN67OSgd39l/oif4+S3fU7jRyCaihGnt7Tba9yOkvRKQnf/G4RjLtbowdLKC3/uqQDIBwvw19EasgMHPEEg6bHfOCBoSgLJYebot8IybrwDLIm3BoetcTBuH/k8+Y++XilIfaoYkvJEMc93MVnna1JLCzqa2/aKQcMO89WE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708480435; c=relaxed/simple; bh=L/2v3iSlKNPFRF36MqloXyokn7cW8/ARD/Ff7gqonv4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=izx77VIgcxXm3ITYS8fFrq6AOG24W+7Iv8J0IAUhkkHsDDHIcYnLv8ewl16wG0PVzl6JZWdd/r4aqwn9GZe949taSGNJVqGzW/OkOmLSnK88GMBKb/VEyvWtisajp0cxffNWSP89BwDp/+CqkMyZ02RbTODLd573mBvaMKcyzAc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qv6zTSYt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A93EC433F1; Wed, 21 Feb 2024 01:53:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708480434; bh=L/2v3iSlKNPFRF36MqloXyokn7cW8/ARD/Ff7gqonv4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=qv6zTSYtxVinYMnQP0hRlpxBBkWbrJEemqismf8LJk9epGMh5ze+QpHGSqRy2EZDk lTtY5ULt0EAWt3kf6ywzCk+HEZeTSkQ299rNV9cEabM+xq5pp3Im5QF9l2eAd3f+AA mIwA1Z1kpYLJcMPYeURHdsy4ReBrX2ulCOaxMcqIn/lZGyhvrgNav8thOjZvV4oYAw tnLnpXP3sDKwBYh9yzjUBlyCM6a35xQgALQBBEolOhCSzgKoiF5F6dDdjfpshm75d8 3nB08FyqdFkURV9xbX2qJcTD6uDxSV+mU1Jbsqdm1Skxlf2UiBZCxEbvOkkbORUI1u /a0nOBP4iTPkg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 08BFDCE16C6; Tue, 20 Feb 2024 17:53:54 -0800 (PST) Date: Tue, 20 Feb 2024 17:53:54 -0800 From: "Paul E. McKenney" To: "Uladzislau Rezki (Sony)" Cc: RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Oleksiy Avramchenko , Frederic Weisbecker Subject: Re: [PATCH v5 0/4] Reduce synchronize_rcu() latency(v5) Message-ID: <70c597d0-7c4f-4b55-bdea-f6bc411862f6@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20240220183115.74124-1-urezki@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240220183115.74124-1-urezki@gmail.com> On Tue, Feb 20, 2024 at 07:31:11PM +0100, Uladzislau Rezki (Sony) wrote: > This is a v5 that tends to improve synchronize_rcu() call in terms of > latency reduction. This has been developed together with Neeraj Upadhyay. > The delta between previous v4 and v5 is rather small. Main difference > are cosmetic changes related to patch squashing and data structures > splitting. > > It is based on Paul's dev branch. Very good, thank you! Queued for further review and testing. Thanx, Paul > v4 -> v5: > - furthers squashing to reduce number of patches; > - remove the CONFIG_RCU_SR_NORMAL_DEBUG_GP Kconfig option and > reuse already existing debug option which is CONFIG_PROVE_RCU; > - add data structures in a separate patch. > > v4: https://lore.kernel.org/lkml/ZZ2bi5iPwXLgjB-f@google.com/T/ > v3: https://lore.kernel.org/lkml/cd45b0b5-f86b-43fb-a5f3-47d340cd4f9f@paulmck-laptop/T/ > v2: https://lore.kernel.org/all/20231030131254.488186-1-urezki@gmail.com/T/ > v1: https://lore.kernel.org/lkml/20231025140915.590390-1-urezki@gmail.com/T/ > > Uladzislau Rezki (Sony) (4): > rcu: Add data structures for synchronize_rcu() > rcu: Reduce synchronize_rcu() latency > rcu: Add a trace event for synchronize_rcu_normal() > rcu: Support direct wake-up of synchronize_rcu() users > > .../admin-guide/kernel-parameters.txt | 14 + > include/trace/events/rcu.h | 27 ++ > kernel/rcu/tree.c | 363 +++++++++++++++++- > kernel/rcu/tree.h | 20 + > kernel/rcu/tree_exp.h | 2 +- > 5 files changed, 424 insertions(+), 2 deletions(-) > > -- > 2.39.2 >