Received: by 10.192.165.148 with SMTP id m20csp3780443imm; Mon, 23 Apr 2018 12:13:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+JRyX5DSd2XIlI/1pcb/N8vOw5IzYGUhXzRNf5YeXtsNw/TpyT6FjcG+tWlzmmIK9ZwfE7 X-Received: by 10.98.227.13 with SMTP id g13mr15972654pfh.68.1524510785167; Mon, 23 Apr 2018 12:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524510785; cv=none; d=google.com; s=arc-20160816; b=COoAxkbQOhlq9TcoS50/MbGNnP/F5veYh4Y+8vklPdxvJ9mZGPXEkxVm9L7p5QPpak U2rND4ElUy7Ti6T2DsrgdYmFxwtATXOUJBAVKKWz+bn4CKLqxSkviqnqy5i2P0qvwmR4 2SqzoQX21+4MdEuXWWvSB67W79iIHZ+hUulm488+yTi8Unq7Me282gkSaqrLO5D6gpbw vV35pYinHLNau7vxSjZZyDYEt31U12cEvEw9lJEptnj/hP5P8IHnJ+7twAMQxjmyfUXj 2GvwMhnhrf12TfAhMlqVW/FyDWYzCuBrL8DRpcicdJ4J/PYVFqcolDLAM7o/PYwjEF3f OhZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=skgdX2Kh+FE1BJ4ChgKHoZ11HGxr1ZE+hCVHe/en33k=; b=e+3TokpZfwhtB0l2USzm0ahbHulH8dJaZeYONKCdrWvYD0lYbNU1Fs7CLZ2LT8T5je 6OgxlciSWxYrxLBP6xsBXdq00XoqSCQckIDlS9TMvjN2PfaP+7x5eEK2EuqWBlX2NdO+ BRoUmpKIDp4nvR3YvHhH6hXr9v++Jj5PZGhIa5BISHpeEw8myeJn+l1PJuSNlPYMQVhw YLjg5UNyayx3UDhWuP5sJwciWB6kbGSKzC/KYLDJLqMOwfXy3ZVWt1BTOoa+9ifxR+7h Gx/t85HdaJ6vv9oxZDMkzv404biJyxVB+1zGYkD2tl+Mb0j2lIaMz5f9Ma758DywOFEE +9sQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p85si11924680pfk.77.2018.04.23.12.12.50; Mon, 23 Apr 2018 12:13:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932467AbeDWTL1 (ORCPT + 99 others); Mon, 23 Apr 2018 15:11:27 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:44456 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932308AbeDWTLU (ORCPT ); Mon, 23 Apr 2018 15:11:20 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3NJ9YaX090465 for ; Mon, 23 Apr 2018 15:11:19 -0400 Received: from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hhgy85cc1-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 23 Apr 2018 15:11:19 -0400 Received: from localhost by e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Apr 2018 15:11:19 -0400 Received: from b01cxnp23034.gho.pok.ibm.com (9.57.198.29) by e19.ny.us.ibm.com (146.89.104.206) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Apr 2018 15:11:14 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3NJBD7Q48824392; Mon, 23 Apr 2018 19:11:13 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6F058B2054; Mon, 23 Apr 2018 16:13:16 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.108]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 35982B205D; Mon, 23 Apr 2018 16:13:16 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id A05EA16C6A6B; Mon, 23 Apr 2018 12:12:27 -0700 (PDT) Date: Mon, 23 Apr 2018 12:12:27 -0700 From: "Paul E. McKenney" To: Steven Rostedt 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 Reply-To: paulmck@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> <20180423094742.6582e19d@gandalf.local.home> <20180423141038.GA4064@hirez.programming.kicks-ass.net> <20180423103529.36848ae1@gandalf.local.home> <20180423154707.GP26088@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423154707.GP26088@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18042319-0056-0000-0000-00000443BCCD X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008907; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01022220; UDB=6.00521733; IPR=6.00801454; MB=3.00020731; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-23 19:11:17 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042319-0057-0000-0000-00000887C6A5 Message-Id: <20180423191227.GA26819@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-23_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804230192 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 23, 2018 at 08:47:07AM -0700, Paul E. McKenney wrote: > On Mon, Apr 23, 2018 at 10:35:29AM -0400, Steven Rostedt wrote: > > On Mon, 23 Apr 2018 16:10:38 +0200 > > Peter Zijlstra wrote: > > > > > > http://lkml.kernel.org/r/20180227153646.GD3777@linux.vnet.ibm.com > > > > > > That thread using cond_resched_task_rcu_qs() seems like a _lot_ better > > > than having cond_resched() semantics change depending on random > > > !scheduler config parameters. > > > > Yeah, I agree. Not sure why Paul didn't push it. Maybe because I never > > replied to that final email and he forgot? > > > > Paul? > > Yeah, I have been a bit event-driven of late. So the thought is to keep > cond_resched() as-is and use cond_resched_task_rcu_qs(), that is after > the rename, for the stress tests instead of the current cond_resched(). > Or did I lose the thread? Actually, I already use cond_resched_tasks_rcu_qs() in benchmark_event_kthread(), so all I need to do is drop this commit. Which I have done, thanks everyone for the review! Thanx, Paul