Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1865596ybh; Fri, 13 Mar 2020 08:44:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs5K9vBsIfG22EtX/XqQgE6kVyszZTbQ6l9/EP6WkFzx4/72HOjLYxcYLzHcs2bWfpQYvkE X-Received: by 2002:a9d:7a7:: with SMTP id 36mr6626486oto.283.1584114289367; Fri, 13 Mar 2020 08:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584114289; cv=none; d=google.com; s=arc-20160816; b=sYOQNpMXwbfbduHPVhs4//4cYsykyw23SA3vJm9y5E8nJ/2qqerRh7xUtNE0g6lZ43 tAEGTgh0M+m1SFApk5SUTFy8ahOkSy1oWLHRQHWkkCDKL8cBHP1GMLhGMrI2EPKxpbyc iuUSy7nJKq3lyBah7OU4dQvoJ5oHPyleJYGdDRP9e6upFfHNB1a0jwJJZrEs2CnJ23+k 9P72OflqC0T5GVO8m4DEkdmxr5pkvy0fylrnq3Ke5Cw9Tozmn2QGjSYsICTKPu0I5naA zZshAjr8ZfRcuoDDorqlHz5Mvp/X+VRcR2nvt6u0VTvzKxTlEdidg9VsAnuj93LvpFTt XBjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=+K3eGWNWsbbIlvlpCLv11YDDXeD0SxQ9TMCctQO/PSg=; b=bme2zJ5E76SlLUoRYKCEachFSmxPE//ZqhVF1XTkHH6FqsiRIH3jAdUw8niH/COs27 Vzf9XfLe6ZoRsq6psIWuYiO/wRwOVipEh8q6JiXOcAMNLHBfyk1+NSe7CvOjLdFU+oSp EVkRfbE9gDHhyVGOC3wAL8pGmVGPRhR+xiN36kp5sD9b7YoqpcrOu/K6/lzxmW5kEjqn IHRBlEWsCb/ozHMhUtTovp2FcGPv5BcSdTZqXPDX+YPjS9gW8f4o8KXu9EuN9a1LYclo uYZOn6oWlM/YgfCOjPfnmSBmGQf03mifNLTQ6OsMhcYc5ypElKCjNq1qW7tyPgcdYEDg 2FHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Xm6oYDsQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si5035502oig.212.2020.03.13.08.44.37; Fri, 13 Mar 2020 08:44:49 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Xm6oYDsQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726902AbgCMPmp (ORCPT + 99 others); Fri, 13 Mar 2020 11:42:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:46764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgCMPmo (ORCPT ); Fri, 13 Mar 2020 11:42:44 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (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 E1D1C206B7; Fri, 13 Mar 2020 15:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584114163; bh=UooZSFKMpcy1PzJo48+1CHGIj4c7gbOpifD6iMLhBZo=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=Xm6oYDsQ+O0rSWeMIzGlS7otfVJxpr6azEsuq8HhE2Xb8L/N9hDwHRBLS2uQhXTZI BZ0I6rh1rNGL4LEZbveLfUJ2MhV5esFhborrwLN7Ww881u6g6LxD253X0hD1HeDtDj JjQemximUEpaUxFtnu4Cm21zszade/qlLihdtAGs= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id B3A183522719; Fri, 13 Mar 2020 08:42:43 -0700 (PDT) Date: Fri, 13 Mar 2020 08:42:43 -0700 From: "Paul E. McKenney" To: Frederic Weisbecker Cc: mutt@paulmck-ThinkPad-P72, rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org Subject: Re: [PATCH RFC tip/core/rcu 0/16] Prototype RCU usable from idle, exception, offline Message-ID: <20200313154243.GU3199@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200312181618.GA21271@paulmck-ThinkPad-P72> <20200313144145.GA31604@lenoir> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200313144145.GA31604@lenoir> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 13, 2020 at 03:41:46PM +0100, Frederic Weisbecker wrote: > On Thu, Mar 12, 2020 at 11:16:18AM -0700, Paul E. McKenney wrote: > > Hello! > > > > This series provides two variants of Tasks RCU, a rude variant inspired > > by Steven Rostedt's use of schedule_on_each_cpu(), and a tracing variant > > requested by the BPF folks and perhaps also of use for other tracing > > use cases. > > > > The tracing variant has explicit read-side markers to permit finite grace > > periods even given in-kernel loops in PREEMPT=n builds It also protects > > code in the idle loop, on exception entry/exit paths, and on the various > > CPU-hotplug online/offline code paths, thus having protection properties > > similar to SRCU. However, unlike SRCU, this variant avoids expensive > > instructions in the read-side primitives, thus having read-side overhead > > similar to that of preemptible RCU. > > > > There are of course downsides. The grace-period code can send IPIs to > > CPUs, even when those CPUs are in the idle loop or in nohz_full userspace. > > It is necessary to scan the full tasklist, much as for Tasks RCU. There > > is a single callback queue guarded by a single lock, again, much as for > > Tasks RCU. If needed, these downsides can be at least partially remedied > > So what we trade to fix the issues we are having with tracing against extended > grace periods, we lose in CPU isolation. That worries me a bit as tracing can > be thoroughly used with nohz_full and CPU isolation. First, disturbing nohz_full CPUs can be avoided by the sysadm simply refusing to remove tracepoints while sensitive applications are running on nohz_full CPUs. Second, for non-CPU-bound real-time programs with mostly-idle CPUs, I should be able to decrease the likelihood of sending IPIs pretty much to zero. Or am I missing something here? Thanx, Paul