Received: by 10.192.165.148 with SMTP id m20csp3448998imm; Mon, 23 Apr 2018 06:49:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx481rQfjL/YqvHPzWmdYnvuSdq9573TUjrc3DqmALnGz9ntEGlSStViuLC4QNdilavUE/eYI X-Received: by 2002:a17:902:b7c7:: with SMTP id v7-v6mr21566919plz.190.1524491376695; Mon, 23 Apr 2018 06:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524491376; cv=none; d=google.com; s=arc-20160816; b=GU5aKtEhx5IAmIwVvL1s++c+vwE9qFiA/Y3CeejlNprZXF7IlewBxwrDpyfsCfzRX4 Din+e0/28zQrQP+Xg+B1nXLi+0ypaysqQc4Z6V7Nc6ctBNIi7XMBQErOYHnO4MrI+roF JtlHx/ZXJ4hUOMozxPVM1CoeDnSHus1DO6xQqsT3UnB7uBSsCk4WY+ivMTmF8c2nv+5v m/95wAaZ7o4OG/RWiqiqQDTarNiENvvi6RtzXj+P9uzHorY+XJfy7Cyfv3cbO7MHesoT eGzNJQ3eUPqcpo5qKzzN2OgF084vO9VhtVXOxjbJAAe7aVCwPE4oalVt0UhzjdHrzgTB UvzA== 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 :dmarc-filter:arc-authentication-results; bh=PjEt5xzeNyi4apeucwQIP3R4ZEFSdMtOcnjWSVgcGl0=; b=Y8FEYngbqco/VFC2VsdFyFbo4m9W1TtXM65hV/gQHCdxqj2GUOnyodELTDizx1j2UA hm1n7+i2BhuXhPJLKiuGWGzfRc2BCbEvERgemmu4chh/WBM+OQVMEeMiDzUGc2Jfv2TR dIDTXHT5pmJxeEFRpOHyCIKVtMnY3/zN0iSwQuIkZwHzAEaDv7L2XhsRYgvmMk5r3Xxx syagGpTyV27Z4T0bfVRN5xFvPIKF2uvPTS7hto4oYBIHh9+hOysH1DkITBcfojiBdc22 XeMLIpDAXTITcHeEuLyVm3ivpRhIWpr1i8kdp5aviTVL1sdBV43bh1GyniR8JLe78qZr cw9w== 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 j188si9329025pgc.584.2018.04.23.06.49.21; Mon, 23 Apr 2018 06:49:36 -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 S1755321AbeDWNrr (ORCPT + 99 others); Mon, 23 Apr 2018 09:47:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:33472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754943AbeDWNrq (ORCPT ); Mon, 23 Apr 2018 09:47:46 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.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 006852178B; Mon, 23 Apr 2018 13:47:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 006852178B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Mon, 23 Apr 2018 09:47:42 -0400 From: Steven Rostedt To: "Paul E. McKenney" Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel.opensrc@gmail.com Subject: Re: [PATCH tip/core/rcu 01/22] sched: Make non-production PREEMPT cond_resched() help Tasks RCU Message-ID: <20180423094742.6582e19d@gandalf.local.home> In-Reply-To: <20180423124000.GL26088@linux.vnet.ibm.com> References: <20180423023150.GA21533@linux.vnet.ibm.com> <1524450747-22778-1-git-send-email-paulmck@linux.vnet.ibm.com> <20180423085127.GR4064@hirez.programming.kicks-ass.net> <20180423124000.GL26088@linux.vnet.ibm.com> X-Mailer: Claws Mail 3.16.0 (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, 23 Apr 2018 05:40:00 -0700 "Paul E. McKenney" wrote: > > I'm confused.. why is having this conditional on TRACEPOINT_BENCHMARK a > > sane idea? > > Because the TRACEPOINT_BENCHMARK tests are insane, so a similar > level of insanity is required to make things work. Plus having this > be unconditional would not be good for performance, as 0day has been > telling me frequently over the past couple of years. Just for some context. The tracepoint benchmark (which should never be enabled in any production machine), will start a thread when the benchmark trace event is enabled. This thread will never exit (until the trace event is disabled), and does a benchmark loop and constantly calls "cond_resched()" to allow other tasks to run. The point is, this thread will never have a quiescent state for task_rcu, unless we tell rcu that cond_resched() is a quiescent state. But this is only required because the tracepoint benchmark has this nasty thread, that is only used for debugging and benchmarking the tracepoint (during development). I also suggested having a direct call into RCU from the thread to tell RCU that it entered a quiescent state, but Paul didn't like that idea as it caused the tracepoint benchmark to call too deep into RCU internals. http://lkml.kernel.org/r/20180227153646.GD3777@linux.vnet.ibm.com -- Steve