Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp656015lqg; Fri, 1 Mar 2024 17:54:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWRsDxQWOEizpQYTLDDFAOypkhKHUEfGxCmWrhdDVyNXjrcV8tzgqdB87YfqkuspC52e0vv6e+T6GrnY/Guw5iQuu/ysc0yOh29B7Ov9w== X-Google-Smtp-Source: AGHT+IEWlOtvqePa3WN/Jxw2ZpldFYmch8lu7EmD6fEWDBEnxCKNuMdRDPQKwB22lxwUhB6i+7pe X-Received: by 2002:ac8:7d88:0:b0:42e:d64d:972b with SMTP id c8-20020ac87d88000000b0042ed64d972bmr1548322qtd.19.1709344476042; Fri, 01 Mar 2024 17:54:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709344476; cv=pass; d=google.com; s=arc-20160816; b=q75wqn/R9BWAY2eDB1fIc5gthVoFi+BP0IX9NzZzlnglBadh9o1U6bpAG5IXDBPorx amwR1nWuZ28jFDbDYzNFko+9PE8W7YKmy+Lzv44tp5bMVZRQTbmnhTrHkkP6Yb0nktBG 99PdPkGxiy+/FV9/6tVAAwKygMoctEBLV/hHy/6ghZWPmPjoLnUGKoAcJakRMSD6BnRY mBEkYQn54LfdIbhPDIKLzi9kl5qaCfhbN8/7nN47+G20FmwaQXIQHEelrlN0C/GnkZHT 9OdXBfZ1DJSrfhMNNRfuCS0Wpo+GCs5J9VvOvJOBJ9Zs25q5Z86eSqdpHAuvKByVDNTO TDLQ== 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=2j3HjAnB05pah8tqz/XYQq5lxodsc2CkrIKRYHGzhVs=; fh=tp57ZCsx7UGLsJiFkEUQTPpTv5hE+bKQZLxL0RMdvcc=; b=ceYk1z8uMaOZ8TopDLnfZLsiZKDDIvR9sNaus1h8TG9yQpztg1QLXfPCJkHUQ5H1nV 7795ytbcpjMLsoPNbSQmsFjxwlsZV1yCY4F5bXXoX58HRFraKzj8+biptNAxpj8bdM8g jVvq7qyPBmGErUt2OpncwAl0ARvgHVUWBPIoQFDe4GmogrUWQv/nM1MfoxHNyNNw6FHT y4D67dpH/lpTLelzv3xrXIZPzryHuHHQvb0twK3icTbGvpA4wXFc+KfEp4vih6L8UkRY 6siasl4MX6rURlWEOvdUbkFa+ufsGe+5ZmMaIWmu6mkroAILr687/XdZBslorHyy6pci Uspw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=peNcYxBZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89304-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89304-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z11-20020a05622a028b00b0042ecef4f4f8si1944885qtw.4.2024.03.01.17.54.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 17:54:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89304-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=peNcYxBZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89304-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89304-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C1F0B1C21771 for ; Sat, 2 Mar 2024 01:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8855D7469; Sat, 2 Mar 2024 01:54:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="peNcYxBZ" 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 9E9916FB2; Sat, 2 Mar 2024 01:54:27 +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=1709344467; cv=none; b=pwrjpBJaSFM+e845hW2R+UhtcsYB6J3Bwp+eR8wWREEfMDb2avwgx8G2Lp7s5JiHP40bMNkPoZPCfj63KtqeK4BhUW4sKev5jB3OulNxpHa5blNPVFy1HmhTDXuClnEtKF3Ybcw+IhCxFIq4vpeFzN3xpYdapC6KnX3aOX7J1x0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709344467; c=relaxed/simple; bh=NNqJwKuUnh2IIdOSAX9YLdozM9t2NsrCRBt0KGDMBuw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HMucNbL02LzXn02SOVelWhxIse+sgVYaiqnmozBI3nf/r4QK1zOZLOdEsaAqNp8j9SPcFj5pf8mzz4Lb/9frralH6ULCXmKH6v6vnAbusPOEUtnNh63wX2mIvhqAolOCLJLWFkxYs6ZJ87JC94ValO00uizZFGSHR3baR8zuVL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=peNcYxBZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AEA5C433C7; Sat, 2 Mar 2024 01:54:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709344467; bh=NNqJwKuUnh2IIdOSAX9YLdozM9t2NsrCRBt0KGDMBuw=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=peNcYxBZmH2tgW84RJHZLdPc0IeTSpwL0AuIUd3ofh15xsHkz73QPJfq1ItY8ifQS FtfWMVLmbthmuhCPtYGX2XF9VPhIrVplAjFEtEb80loUENgfX1ubTLjSsIavzZcQvk 9aKXDUerLZkhALiYlS4S1PzdMIoYt4kBOk20Q087Qyu/G2dT+UZYDTxnV3uRzvyOv0 +YRJQ5+i31g9Fn+3rjLFRz2LyDDUJEihvNHmVktmj3YUuxlaK4/nkMuteJC+wbc/ON p+uHIqxD5q5+/CTkHdp0kFgCkJfrCgOd0vX2e40acpgVZzurAGb9GtCmFrpo6GtqDB L0VJEMzq886WA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id B1303CE140C; Fri, 1 Mar 2024 17:54:26 -0800 (PST) Date: Fri, 1 Mar 2024 17:54:26 -0800 From: "Paul E. McKenney" To: Steven Rostedt Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Ankur Arora , Thomas Gleixner , kernel-team@meta.com Subject: Re: [PATCH RFC ftrace] Chose RCU Tasks based on TASKS_RCU rather than PREEMPTION Message-ID: Reply-To: paulmck@kernel.org References: <20240228152236.7a4c9eec@gandalf.local.home> <2835d5ea-0396-49f6-88fb-be49cb998cc5@paulmck-laptop> <20240301153001.0d544f9c@gandalf.local.home> 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: <20240301153001.0d544f9c@gandalf.local.home> On Fri, Mar 01, 2024 at 03:30:01PM -0500, Steven Rostedt wrote: > On Fri, 1 Mar 2024 12:25:10 -0800 > "Paul E. McKenney" wrote: > > > > That would work for me. If there are no objections, I will make this > > > change. > > > > But I did check the latency of synchronize_rcu_tasks_rude() (about 100ms) > > and synchronize_rcu() (about 20ms). This is on a 80-hardware-thread > > x86 system that is being flooded with calls to one or the other of > > these two functions, but is otherwise idle. So adding that unnecessary > > synchronize_rcu() adds about 20% to that synchronization delay. > > > > Which might still be OK, but... In the immortal words of MS-DOS, > > "Are you sure?". ;-) > > It's just safe to keep it. It's definitely not a fast path. OK, you got it! ;-) Thanx, Paul