Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp430454rdf; Tue, 21 Nov 2023 06:40:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIHE7ST0CM8XoGQ4LfzTj/qgRZSkRW1saiO34vdB/fHJLMNBRTo6sFXPnjQskNPuDoeDFj X-Received: by 2002:a17:902:eecd:b0:1ca:1be4:bda4 with SMTP id h13-20020a170902eecd00b001ca1be4bda4mr11232952plb.4.1700577619863; Tue, 21 Nov 2023 06:40:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700577619; cv=none; d=google.com; s=arc-20160816; b=j7Ke9EMq/nEARWmQuVn5mWVhInS/gNf2NOqtR2c/Hnj4kLukpaK2Z8/6r/iSKYFnYJ /nBA5i+5zxXlOm5/F3f1cWrUImbQt4GADPjXjerPiiS/P0XGyirPw7mC8hp1jtgYXn05 X18as0K0G318YpC+p5fVkgkjE8LxMwUZ6aGSIqo5unx9Quz8DPN7Mh2f5q7mWwwxQuwc QtroX9rYk605a2LImbKgFVr64UbUPZ5Hu/c8gQUXuNZe2F9C+BnRKEaiV9X/u6IP2uT2 EoldvP95EyPU06MNtOFcEXGquqCSd7W8bFEr20gsElIYtqlxWaV06jcRlRws2Obsft14 HadQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ptTnP17JK90mQker1r9IAigIP5I77v53pFNeELMmTzI=; fh=qB+10VByIYmrHCBw3OM2AV+CL5bb1D7hJW0HGfNj7tg=; b=eejeopoBHMW0gneA+kWGAdnFR//1D5/IgAJwDRMCsLrnhql9vYX5QlUSfLmrhwIzWS bj4sEne5SJU9LlyWnWZS/x1EcoPDPDD1vWCjvPacUQUKz/g+5U7ftEOZUQRxF03CoOYt R1TFvWZMxH3y1wN6+YLWM87BnLYOzHgf/jPYSjodyxLGFLJmEP9ytDieWsWOy+IEWVU7 QhDB5IkcLr1xWlXiagHRkaLAoF/KtdoDY+BtOZVQn7dEF6E/KGRzlCnrEjTPtgtoMyIK M7kR8+5v1RkXB/5z5url5ZNCqpgjHoACDFB80UDHnICW1ax1YnPoNaW5KHBIB+NMZrFa ATAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=KUshoXXQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id q17-20020a170902b11100b001cc5505fff4si10360602plr.257.2023.11.21.06.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 06:40:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=KUshoXXQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 45B8E805190F; Tue, 21 Nov 2023 06:40:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234521AbjKUOkJ (ORCPT + 99 others); Tue, 21 Nov 2023 09:40:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234291AbjKUOkI (ORCPT ); Tue, 21 Nov 2023 09:40:08 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D31090; Tue, 21 Nov 2023 06:40:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1700577603; bh=slOFY68DjOchIUSbT+0P10wYKdi7DSeShvA8TWwjWz8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=KUshoXXQ6U+EbM1gWiZMHcLrEe4/UVNuVSMc8hLAxI8KOXpXSpe/ojGA076MWNKOx HeseirwwDI2Y1PKCD/UHEt8Uh1pzHO4s/F+plqwai+8GwqerVcSzvi3ke7DOyR/mh3 a0aDfS0xZz1kji2I/sSHCsS3WDG7/29Mi2R/Brs3nYEd2wnw8dPjsnLaqkG+jHhiKg +WFh597cY+92PEio+40+y5XPtLVjTiDs8ovVzeIouUQtv62JyyiHx7c0TXI+czGqXM +7gjwvwNjs7FBmPTr9HbyK55WtJka8NuW8Yekb7J5O/wGqOlWUgWSesxtGarnsV5UI HLNTWMVlFuX3A== Received: from [172.16.0.134] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4SZRqR20Rqz1dDq; Tue, 21 Nov 2023 09:40:03 -0500 (EST) Message-ID: <6f503545-9c42-4d10-aca4-5332fd1097f3@efficios.com> Date: Tue, 21 Nov 2023 09:40:24 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/5] tracing: Introduce faultable tracepoints Content-Language: en-US To: Peter Zijlstra 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 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> <20231121143647.GI8262@noisy.programming.kicks-ass.net> From: Mathieu Desnoyers In-Reply-To: <20231121143647.GI8262@noisy.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 06:40:16 -0800 (PST) On 2023-11-21 09:36, Peter Zijlstra wrote: > 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. In addition to taking the mmap_sem, the page fault handler need to block until its requested pages are faulted in, which may depend on disk I/O. Is it acceptable to wait for I/O while holding preemptible RCU read-side? Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com