Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3401059imm; Sun, 14 Oct 2018 19:35:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV61hbcCvhdx8adP8fX1fob9VaOcj3SD2ZmoKuz8DLw1daLhDtY+FfS6nLS5kOTB5rqQvbqA4 X-Received: by 2002:a17:902:f096:: with SMTP id go22mr15427838plb.235.1539570959919; Sun, 14 Oct 2018 19:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539570959; cv=none; d=google.com; s=arc-20160816; b=S4fiFgQv3pC5AvKElx8draieQcjvGFJD3HhqoMd5N5hoBO5Jn1LkFLzLi/ljM3I6gt IPKQ3LF/biqO2uQmeXqyJOSU+ZlLt4+lAgOPBU5+2uWwRb+o8CWQu7nmPl8Y5L4tzb9g jt7GxrqLUKX1dhxeqrxIdTuKvV1o1npTDdttzlj+OoFARCl25a93eUs4KOErX5HrCGkG Rx97kpQ3CJ5Wdaz6NUKhSnqMICLHMXaLacNcrTN/q0Rf3E8Oq+gSX2a0/AFjDZiMrQl3 EDFiEt321OiRWWkQKetMeYPab4wQk/5WmrhfHTXdogTPcnk57GTurKbc6coE5C9ja7St cVYQ== 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; bh=5ztUL9Ooxv9znd6gnsmi9i/5zk223Fnk3h0Tv/KnLGE=; b=Ef06ndwBXIjOvfMEIIcdXKV6G8UND01D6/Q9po3pNdSLRItjDm3KvW54jtS+avSTCJ r4NA5rOa4imniKxuxMSpLz3pGflMsBlgOBbcYk+L97t3ce2axTSe0Pr44EJWruHdSQvK i4VlUnko1jiHeaqJZYt7HQtDwv4NCc+y8B2ax85DuD/IGw8u9bvcMn8I+sY4KJBwA4Ko YtUhmeT90H8QqrI7U/66LJzTG/N71MITchjr8fhD6qjuR5YVwnhpPuo/CfZdCtarK3FE YhXdpLhbTlmq6MtJfH9+WcXkax5vsm+mUIp0Q8lNa2RkGp6CWqJmavyUBHGQ29YqQJUu oHCw== 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 z1-v6si8981755plo.59.2018.10.14.19.35.44; Sun, 14 Oct 2018 19:35:59 -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 S1726628AbeJOKQm (ORCPT + 99 others); Mon, 15 Oct 2018 06:16:42 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:47602 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726273AbeJOKQl (ORCPT ); Mon, 15 Oct 2018 06:16:41 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w9F2SldH140545 for ; Sun, 14 Oct 2018 22:33:31 -0400 Received: from e15.ny.us.ibm.com (e15.ny.us.ibm.com [129.33.205.205]) by mx0a-001b2d01.pphosted.com with ESMTP id 2n4h2v1vqb-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 14 Oct 2018 22:33:30 -0400 Received: from localhost by e15.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 14 Oct 2018 22:33:29 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (9.57.198.27) by e15.ny.us.ibm.com (146.89.104.202) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sun, 14 Oct 2018 22:33:26 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w9F2XPXU25821222 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 Oct 2018 02:33:25 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 711B0B2068; Sun, 14 Oct 2018 22:31:21 -0400 (EDT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 50CCAB2064; Sun, 14 Oct 2018 22:31:21 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.85.131.128]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Sun, 14 Oct 2018 22:31:21 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 9DE9416C3403; Sun, 14 Oct 2018 19:33:28 -0700 (PDT) Date: Sun, 14 Oct 2018 19:33:28 -0700 From: "Paul E. McKenney" To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, Jonathan Corbet , Josh Triplett , Lai Jiangshan , linux-doc@vger.kernel.org, Mathieu Desnoyers , Steven Rostedt Subject: Re: [PATCH RFC] doc: rcu: remove obsolete (non-)requirement about disabling preemption Reply-To: paulmck@linux.ibm.com References: <20181014212955.95267-1-joel@joelfernandes.org> <20181014231731.GN2674@linux.ibm.com> <20181015020827.GA217384@joelaf.mtv.corp.google.com> <20181015021349.GB217384@joelaf.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181015021349.GB217384@joelaf.mtv.corp.google.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18101502-0068-0000-0000-0000034D202C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009879; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000268; SDB=6.01102806; UDB=6.00570776; IPR=6.00882858; MB=3.00023757; MTD=3.00000008; XFM=3.00000015; UTC=2018-10-15 02:33:28 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18101502-0069-0000-0000-00004612B42B Message-Id: <20181015023328.GP2674@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-15_01:,, 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 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810150022 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 14, 2018 at 07:13:49PM -0700, Joel Fernandes wrote: > On Sun, Oct 14, 2018 at 07:08:27PM -0700, Joel Fernandes wrote: > > On Sun, Oct 14, 2018 at 04:17:31PM -0700, Paul E. McKenney wrote: > > > On Sun, Oct 14, 2018 at 02:29:55PM -0700, Joel Fernandes (Google) wrote: > > > > The Requirements.html document says "Disabling Preemption Does Not Block > > > > Grace Periods". However this is no longer true with the RCU > > > > consolidation. Lets remove the obsolete (non-)requirement entirely. > > > > > > > > Signed-off-by: Joel Fernandes (Google) > > > > > > Good catch, queued, thank you! > > > > Thanks! By the way after I sent the patch, I also tried Oleg's experiment to > > confirm that this is indeed obsolete. :) > > > > One thing interesting came up when I tried synchronize_rcu_expedited() > > instead of synchronize_rcu() in Oleg's experiment, I still saw a multiple > > millisecond delay between when the rcu read section completely and the > > synchronize_rcu_expedited returns: > > > > For example, with synchronize_rcu_expedited, the 'SPIN done' and the 'SYNC > > done' are about 3 millisecond apart: > > [ 77.599142] SPIN start > > [ 77.601595] SYNC start > > [ 82.604950] SPIN done! > > [ 82.607836] SYNC done! > > I saw anywhere from 2-6 milliseconds. > > > > The reason I bring this up is according to Requirements.html: In some cases, > > the multi-millisecond synchronize_rcu() latencies are unacceptable. In these > > cases, synchronize_rcu_expedited() may be used instead,.. so either I messed > > something up in the experiment, or I need to update this part of the document ;-) In normal testing, 2-6 milliseconds is indeed excessive. Could you please point me at Oleg's experiment? Also, what CONFIG_PREEMPT setting were you using? (My guess is CONFIG_PREEMPT=y.) > So I realized I'm running in Qemu so it could also be a scheduling delay of > the vcpu thread. So apologies about the noise if the experiment works fine > for you. I used rcuperf, which might not be doing the same thing as Oleg's experiment. Thanx, Paul