Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp530584lqg; Fri, 1 Mar 2024 12:28:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmcTyE3Bw2JkD7DMvoZOjRyzLGEPD5nOT663O+diXuT0uwGAoBVN9QavH7w6yiQjDxuYWzc81sJ0TEq+hmbscZmuwkpGJ4iVUa3nsSjw== X-Google-Smtp-Source: AGHT+IH6wnlT6En/0LfBgr71HsepWS7dcQ4MP0OnLhUDh2m8Z5pSaWfNF30Om5rppNIu9hv1lKAJ X-Received: by 2002:a05:6122:11b1:b0:4c8:979d:8137 with SMTP id y17-20020a05612211b100b004c8979d8137mr2353926vkn.3.1709324919508; Fri, 01 Mar 2024 12:28:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709324919; cv=pass; d=google.com; s=arc-20160816; b=CLK7fVSZiSafRJADTaTXodpSsHo1hsATYqLRDKP8jmPqx3M1fPcCA/mSIFuUGduCT9 V+Rf4+R/6EHgTKTw4hyUM6GQ4UlmkyA6UJMdH4cVxdItzGSN31VT05nlF+2DJsRd/08s 3RX5+gimTfgXClXdVEMxFspTsdwi21t5QCDKFRsSxvZzr/oVxJBCW5D92FL/k6cDC7AW hKAWlxw1UyfpP9+ksEMYQUtoJojehK3HNBrxlWomOpvtNFJNbWB1H9URtXHtbra8o8Vl dq7bZTCgszvWtSQnW79aTa6cCp4BoAPLGQRbsWFIfT9t+JaWuowwFBpBcGUnxwaomwoS Js3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=LmU+Llw8A00cGMo4th/Tdnv2wlXtTDCjiLHLPoeXqYg=; fh=lTyHcI9I8FdQ4lXujQQ12l5Scl6SoZFNhnWezYWyazI=; b=oEWyzI3Jiei/+IpunFeT01Kw/0W0RkhsBM9mJU37Fvxh7Tj8qbM8mAsJzOdEOhsR4n CZCUCtNqZ8/i8Tfggm54zvK9LCMnhOvtAs26FmC5HXMr0TioVZWz7Bj6GjMOjcr7eGDU d8bh2l+SCW6rSixvfxI/UqvJjolG/DPjfUh1eShdx5PajZ3UH1OtWWzRw5oc8jFzQtzl PS+rrny9TGIpuik1mPWJ4FQQQa9cHtw4od+k5moG78w7PLJvYBRRqfkWifq0yuTQ+K5X 6Wx55bh3HwAyyRl4Yk7IU7TMGubMhRsBwPWWsicPLIHcz4wJfQPFh5H5zgN+Sf3dqdj5 24dQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-89087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89087-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j13-20020a05620a000d00b007880d58844csi1460267qki.117.2024.03.01.12.28.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 12:28:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-89087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89087-linux.lists.archive=gmail.com@vger.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 363111C25092 for ; Fri, 1 Mar 2024 20:28:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 436AF3C49A; Fri, 1 Mar 2024 20:27:54 +0000 (UTC) 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 BEFBA3DB91; Fri, 1 Mar 2024 20:27:53 +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=1709324873; cv=none; b=dvycv67w950PO3dBbvbxi8bbVpSJiafwGjIx/3QL+u8My3tQ3SQojP7pKJVNB7oZpzU65YAF51wZjppdbeEfbcf6Zmk0HnF2ntrrQ7WiZ+HVqy5uYcXkeRO+dmA+DMLgUCZx76ZevwZ+mB7crySJU6yPWycjgaP7rl/StjpHq1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709324873; c=relaxed/simple; bh=8NqchkgmgZ+i8ZSZn6TysYQ/007CbNbJX+J+AJF8q8E=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MSUrg1BQdsrcRCgIWinOf1VbCuFl2lAVbSJjktrBExwxo/xzyA1PinXxf7KAJCIbYd0ZoEv22oIF1HKtZcK0KcGtowZ36pqFFJGHXWoQF1ZFn5nZNBPD8QVRU+cBg85Wl7xe30juXrS0s1KQS2ihfj882PW5qz+4cS0jWai2rto= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9009CC433F1; Fri, 1 Mar 2024 20:27:52 +0000 (UTC) Date: Fri, 1 Mar 2024 15:30:01 -0500 From: Steven Rostedt To: "Paul E. McKenney" 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: <20240301153001.0d544f9c@gandalf.local.home> In-Reply-To: <2835d5ea-0396-49f6-88fb-be49cb998cc5@paulmck-laptop> References: <20240228152236.7a4c9eec@gandalf.local.home> <2835d5ea-0396-49f6-88fb-be49cb998cc5@paulmck-laptop> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit 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. -- Steve