Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp428567rdf; Tue, 21 Nov 2023 06:37:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0iVbBcMgqlxk8D5EPWgO7ioY8trTuOt4vGzSU+gAzRxtaa4vdEKULfq0y/KZcEp8s9kJc X-Received: by 2002:a17:902:c3d1:b0:1cc:468d:526c with SMTP id j17-20020a170902c3d100b001cc468d526cmr9085319plj.9.1700577441395; Tue, 21 Nov 2023 06:37:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700577441; cv=none; d=google.com; s=arc-20160816; b=x+olwc7hH9ohbjRRGIMboTnVYF5IPW0diWFL/f2ke9N2u5uX3X+Gz5IQk1eh8k7Qv1 ETUK5QiJ47U6ckqtED4pKxFdoCYP0ee5URgVYcRWKNWNC9FiQ3/Ia51MLTbn/nePLi/U Q5YSr5oCbO+X+BCdOUSUc3pbha1XcqqoGmKwQPJoZEoHpuVz2wy433/LKmo99qV4ayn4 A0Kg5qA6wnrd3McnJ9MpUp732Gh6KOyrUe3yhR+1CxLJt0nFko3TDPFRvs2o/vKCTk7C uEaDyWC9S3YvcKgA7J2pcm0ym9GgljOWEh3qOen75A4j82aUT2AuE6xGFEnxcL30q2Ne 1Hbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=d8HedOLE7HAb7DhrMWtkJj8KjFf9D0cLXb+qJps2r14=; fh=z9Hiijo2AEjSuQa407xYLVoBdVXTx1tb3RJVTAa8V68=; b=WoRwyJlMA+tgvOpNyJis1b8yNgBcnTWmDGvDhN6MtIi52ACxbHzLe4+32rqGL7qx8z uV7tmIXSTgFC2pgz2K964FmhaFaj2h5X2daEVEu6cK4G1AwqNv07RQOvjv8IlylRysQB M7R80bxRs7FldiwRlEHIs9B5v5sejgtwVbE0SAvZnZI/bs3vWJsZNrXhb8xFT7gV41nk VQJsuIpv/m5v9UNlrX5g0NhHupcLJ9ogHtRnyuD6tho9iQNH+5D56vMgY0MsL1ARaQOL +PGN8vvnfd+pXofr66nhBGndzgmf50mbQxpmTMAXAn7vpuX4w2ddx+sEEzRIdGLlAmov 5ohw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nyovOm6Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id n13-20020a170902d2cd00b001cf6aca663bsi2624181plc.524.2023.11.21.06.37.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 06:37:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nyovOm6Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id AA83E8093F65; Tue, 21 Nov 2023 06:37:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234291AbjKUOhM (ORCPT + 99 others); Tue, 21 Nov 2023 09:37:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233961AbjKUOhK (ORCPT ); Tue, 21 Nov 2023 09:37:10 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 753B2100; Tue, 21 Nov 2023 06:37:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=d8HedOLE7HAb7DhrMWtkJj8KjFf9D0cLXb+qJps2r14=; b=nyovOm6ZBug1Y7ge9B0u8J2d7D T5S03HGyXdBBNDxQjvZxuo7n9VfkA/rPNY8D9GUSvJX8IYk5k3GftEBiFe7ImWRoC5mqUIBRNgktY uqY6HiYgCFWOFwO4bw27GHbKE9T3j2mJ2foJdB2Cm7YAkRDChV1aRR39YjlRVT71LoUiML5kB/Rvd LZYSMHQdWRNtWOxgj4ofrEfYQsCd2Yppm3ov/0lavScgQrtvbBbxzIaiu5z0PPDBbVCKU9Wm95A6V IvhCv8cLG1XH9+tl3F2vMOUqOYgBX97WFzGgdppAB7L0rQUE25Msfc9/q9JufvUwehMq6PtwTJFsT BtQSH6Xg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1r5Rrs-005fbL-Ia; Tue, 21 Nov 2023 14:36:48 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 233F8300338; Tue, 21 Nov 2023 15:36:47 +0100 (CET) Date: Tue, 21 Nov 2023 15:36:47 +0100 From: Peter Zijlstra To: Mathieu Desnoyers Cc: "Paul E. McKenney" , Steven Rostedt , Masami Hiramatsu , linux-kernel@vger.kernel.org, Michael Jeanson , Alexei Starovoitov , Yonghong Song , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , bpf@vger.kernel.org, Joel Fernandes Subject: Re: [PATCH v4 1/5] tracing: Introduce faultable tracepoints Message-ID: <20231121143647.GI8262@noisy.programming.kicks-ass.net> References: <20231120205418.334172-1-mathieu.desnoyers@efficios.com> <20231120205418.334172-2-mathieu.desnoyers@efficios.com> <20231120214742.GC8262@noisy.programming.kicks-ass.net> <62c6e37c-88cc-43f7-ac3f-1c14059277cc@paulmck-laptop> <20231120222311.GE8262@noisy.programming.kicks-ass.net> <20231121084706.GF8262@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 06:37:19 -0800 (PST) On Tue, Nov 21, 2023 at 09:06:18AM -0500, Mathieu Desnoyers wrote: > Task trace RCU fits a niche that has the following set of requirements/tradeoffs: > > - Allow page faults within RCU read-side (like SRCU), > - Has a low-overhead read lock-unlock (without the memory barrier overhead of SRCU), > - The tradeoff: Has a rather slow synchronize_rcu(), but tracers should not care about > that. Hence, this is not meant to be a generic replacement for SRCU. > > Based on my reading of https://lwn.net/Articles/253651/ , preemptible RCU is not a good > fit for the following reasons: > > - It disallows blocking within a RCU read-side on non-CONFIG_PREEMPT kernels, Your counter points are confused, we simply don't build preemptible RCU unless PREEMPT=y, but that could surely be fixed and exposed as a separate flavour. > - AFAIU the mmap_sem used within the page fault handler does not have priority inheritance. What's that got to do with anything? Still utterly confused about what task-tracing rcu is and how it is different from preemptible rcu.