Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp488971rdf; Tue, 21 Nov 2023 08:02:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBHcSlUfWy+Y1qtxRqvWIb+WE8vfNT3gtkA7wNhIhDxOGwSfUnv6xCCGKJT7XOjaTtvSyP X-Received: by 2002:a05:6870:b8b:b0:1f5:ef2a:9dee with SMTP id lg11-20020a0568700b8b00b001f5ef2a9deemr10217312oab.37.1700582530714; Tue, 21 Nov 2023 08:02:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700582530; cv=none; d=google.com; s=arc-20160816; b=VGf9S1xTW9TwbP3ZACrPSe5y+pciXc+Vq1ODsGFMnww5l/LdorHBUrY91o3LpIHVMl it/PKBogEfghIOyQsKKA46BWG1VfBWMPvjcHoBVY0f4CnccKUswdQhlQIyqdrWZv5jiv P3CRs8Te3ohCfHjF9dC/A3Gkr2QezjJnaaOsj6XU68Vc2AsviMcQ3JEeLkyYQK7zbhAb Q4SvEsAfJrMRAvpp1KZ2lTxEcNwR9KNPuURTnipOBU7lsLsllRGG8a5IfMhEgvANN/F5 QX8V8yQ+NPXHh++FYYgTVYlGSk/z8gMnubPUbW8WfKRsj0xHgkqnD84YtxNOqZYyWUtF adag== 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=vkP27VyZo+XLvU+M8CxbhZhnFuKD2k3EVJi+9CFVPBY=; fh=qB+10VByIYmrHCBw3OM2AV+CL5bb1D7hJW0HGfNj7tg=; b=wj+BD0Qd+CrcRuD3l/lIUOj3+42ErTaO0+25KK7k8uhW2Z1BRFtIyIgbIeqnJx6hRW beLXo2gshoAKVBiStq1SzNnYN4dyOOaFkHkjgShqZ4dRUI2LJwR/Bqw5c2mPp1rMh/p2 a6mcERHci4Y5YDzS0LDoOgLWQyTDMOQ97dvwXfggt/Ajn6jw1QOWHa38nIrpKVKfI9AR 0RpnjnD6a0XQZ9/7BKy+tRU9fDyxNXB2tVrbI5EOvXcF2qWDtmZHeHz/SQFLypgIhVWN sPBVokKVS5VPfyu59Qu6M16L4ISJudWNnU/dbMiFvD+9XtnIzX+nJFJaaeSJtuxWCUuQ Rahw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=PJG2hlpy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w23-20020a9d77d7000000b006bcacc00b0csi3677912otl.168.2023.11.21.08.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 08:02:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=PJG2hlpy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 01D39807E835; Tue, 21 Nov 2023 08:00:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234876AbjKUQAC (ORCPT + 99 others); Tue, 21 Nov 2023 11:00:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234855AbjKUQAA (ORCPT ); Tue, 21 Nov 2023 11:00:00 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C98561AA; Tue, 21 Nov 2023 07:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1700582394; bh=JmZEJf5RAneAxfKkhrBenzkWIsFalBZLR+8PE1XQg7g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=PJG2hlpytqC9RlLooQ1aDWebO4kuIGaVMyp0oIIq+80TqrSaTtSN1zlDjDrSEILL6 gU4ff5QwK08MqH7DWPr7x0dCap5zPI1h6qCwPGXku1E2F1oeTgjPbY0LRPTzU1H4ks MDRVTN3oFBKLEA7HaPCNqxTmQFHbJkWp96r9Dy0olReM2f3dK5iGae3EM2ygzlbK60 3chDYLSJvcKTmDPPZJtk4VGX6me9oriIzTzpTLVyKQz/24W/7JmFPBSgC6/32f0qzq +k12r35XGo+wKbxppocMVfys5fm+UYr0SYU6S5hUMRdiBJP6JRgnUlTYPMxLeZSmtL 9CaymuEZD5YwA== 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 4SZTbZ2wrQz1cv5; Tue, 21 Nov 2023 10:59:54 -0500 (EST) Message-ID: Date: Tue, 21 Nov 2023 11:00:13 -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-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> <6f503545-9c42-4d10-aca4-5332fd1097f3@efficios.com> <20231121144643.GJ8262@noisy.programming.kicks-ass.net> <20231121155256.GN4779@noisy.programming.kicks-ass.net> From: Mathieu Desnoyers In-Reply-To: <20231121155256.GN4779@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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 08:00:16 -0800 (PST) On 2023-11-21 10:52, Peter Zijlstra wrote: > On Tue, Nov 21, 2023 at 03:46:43PM +0100, Peter Zijlstra wrote: > >> Why is this such a hard question? > > Anyway, recapping from IRC: > > preemptible, SRCU: > counter-array based, GP advances by increasing array index > and waiting for previous index to drop to 0. > > notably, a GP can pass while a task is preempted but not within a > critical section. > > SRCU has smp_mb() in the critical sections to improve GP. Also: preemptible only allows blocking when priority inheritance is guarantees, which excludes doing I/O, and thus page faults. Otherwise a long I/O could cause the system to OOM. SRCU allows all kind of blocking, as long as the entire SRCU domain does not mind waiting for a while before readers complete. > > tasks: > waits for every task to pass schedule() > > ensures that any pieces of text rendered unreachable before, is > actually unused after. > > tasks-rude: > like tasks, but different? build to handle tracing while rcu-idle, > even though that was already deemed bad? > > tasks-tracing-rcu: > extention of tasks to have critical-sections ? Should this simply be > tasks? tasks-trace-rcu is meant to allow tasks to block/take a page fault within the read-side. It is specialized for tracing and has a single domain. It does not need the smp_mb on the read-side, which makes it lower-overhead than SRCU. Thanks, Mathieu > > > Can someone complete, please? > > > -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com