Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3035174ybh; Mon, 16 Mar 2020 14:33:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsRp0Yq2RdNMMOgUe5tqBeIb+NBpnFFhjNukokj/W7XuO1/ic9dARjqmag1YFfD46xQm5Cr X-Received: by 2002:a05:6830:1e25:: with SMTP id t5mr1036527otr.70.1584394404196; Mon, 16 Mar 2020 14:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584394404; cv=none; d=google.com; s=arc-20160816; b=r+F7ahkT4rIj64hH/GYLrPxo649H3KgHo5JYSg0C90y5jnPTodEjNx9sLTku1ra3kN /uw8tcCiZOG2fL4oiJDHQbDAabb/URJSwb7yP//Gbv0uphnHXSMx7xDPophOOyKLnN2t uo9udS3NclwZwlKCRi+vFK62C3EKD2QK1nDreLkEHMTM57bQ0p0+sY/YOn4otdhG9Yvt QfP7xRsIwgEIDZkg6psTRgqrPLbYp0BbY9DBEwYivPha3wookEtWWMtkdTlhP5soWyXC oe45vIHhGlJLMB/jm73MFAhhDag5gFhKkuwfGO9vIcLtoY+bD2ZsECYLbCiAjV3fCQ+R Ub1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=CuuUjMh+84bgUHOWcX0v8OG6FKDPB0GKh5QnPMJWXIU=; b=S2W7P15XO4iDG/pH+wrXD4Zu/8XcvESAvVeecG998bz3gNJeYn4Y04MregTvcMxCMT Izq2Jcnlcnq/QA77y7X0mc4VlBdE49FvBpBeWt5JPON1kLjgYzG6UeLH6Vo+uS9EEc7+ dP1uz4+CVfcc4ysi2UaK0HniDJeUVQqqiyfscgVvWtUH9xc/H7jz/FM6BdBRl6FWvh6J BlAzTumV1wPSPs9ZRlAuJR++ZgGyFB4mnoTftjTg6cHSkKU030akouYLph015NmIkbI9 Q/FJQb/mS3Kf2G5JKxFLZ8Z9mpTppJSU/+lSMAIEwi+1D99/7+bWjCCf//uDqhNnfBdn ooog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d27si605283otf.22.2020.03.16.14.33.11; Mon, 16 Mar 2020 14:33:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732714AbgCPVcX (ORCPT + 99 others); Mon, 16 Mar 2020 17:32:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:42440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732672AbgCPVcX (ORCPT ); Mon, 16 Mar 2020 17:32:23 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E820020679; Mon, 16 Mar 2020 21:32:20 +0000 (UTC) Date: Mon, 16 Mar 2020 17:32:19 -0400 From: Steven Rostedt To: "Paul E. McKenney" Cc: Joel Fernandes , rcu , LKML , "kernel-team@fb.com," , Ingo Molnar , Lai Jiangshan , dipankar , Andrew Morton , Mathieu Desnoyers , Josh Triplett , Thomas Glexiner , Peter Zijlstra , David Howells , Eric Dumazet , Frederic Weisbecker , Oleg Nesterov Subject: Re: [PATCH RFC tip/core/rcu 09/16] rcu-tasks: Add an RCU-tasks rude variant Message-ID: <20200316173219.1f8b7443@gandalf.local.home> In-Reply-To: <20200316203241.GB3199@paulmck-ThinkPad-P72> References: <20200312181618.GA21271@paulmck-ThinkPad-P72> <20200312181702.8443-9-paulmck@kernel.org> <20200316194754.GA172196@google.com> <20200316203241.GB3199@paulmck-ThinkPad-P72> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Mar 2020 13:32:41 -0700 "Paul E. McKenney" wrote: > > Just curious, why is the "rude" version better than SRCU? Seems the > > schedule_on_each_cpu() would be much slower than SRCU especially if > > there are 1000s of CPUs involved. Is there any reason that is a better > > alternative? > > The rude version has much faster readers, and the story I hear is that > there are not expected to be all that many concurrent updaters. > > But to get more detail, why not ask Steven why he chose not to use SRCU? > (I know the story for the BPF guys, and it is because of SRCU's read-side > overhead.) Same for the function side (if not even more so). This would require adding a srcu_read_lock() to all functions that can be traced! That would be a huge kill in performance. Probably to the point no one would bother even using function tracer. -- Steve