Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3389411imm; Sun, 14 Oct 2018 19:15:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV60wKJXKdyrE910tVNZLVuUj85H5ieJjsvd8IA/BF8OsI9YKBkJhRkA4vndHfwPHB1JUL5AH X-Received: by 2002:a62:11cb:: with SMTP id 72-v6mr15520919pfr.120.1539569722644; Sun, 14 Oct 2018 19:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539569722; cv=none; d=google.com; s=arc-20160816; b=lm7bV8iyXPElVQ0PCKm66yiLYTbkBdRWMq+JGRyuXRVEjdXr+wDw0FlLEP+actP0nO rDAK/SQ/X1y9MWeFPR1uBYWN3hEnqdQyE4OqpMspA2Mq1Tw/bbvw19ZBbAIhvL/NdXei rSSuOhOi5V8nDiYnUOxoYDFVoB/j/82VT7Ewe8ZtzyiwzbHhYDYtatwQE4n7vK6OWhpx qHEhlxWy6eWleRAd1fFPm4Yfo9Q8aXd//miWUuKGRPuvsZSA2GwhcbYBb9Xslve/fE7G RZcUGgPcLkGxiQo2XnW27DcZuwPmNCzf3Jg7ilLE8Kd1E3XDkDSNgUDi+1YabPkua/+d yhbQ== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=DAG6do8Qbuvxl3VxASK5DL9Y/7NWoA5FaquGDm42Tx0=; b=boTAW69IQY+VyQcNdWXEvLD1z8WDyyJqnhR3INEI/T+rCH3AJ6RBaI7ai60bKLhB50 aszEojLARugMFcHYpydFgh+FDTNr/Mzf4Ds8qPeny5Xn8d1uGbhQQVhVXZS11KLZmL2U L/RW4ApGJdgPxXLt4MtWTyp21KAO/6YQIdDL3rlbj4S5nNOmEExzaW+lN2VsepZrflvx KKi1O0sPgzGErBKEjSLZe5WlrbzkeUMH46qtn9F6WJzgMI/ir5L3OzNykLVhpjjsxv6C cbzRnty5m3HnyfVcA0hwWg6peZX5VOYjQ/Bx6rU1ieluotrBv6F937N0h6ovGLBggwdR ewjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=bl7y2h3K; 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 m9-v6si8444203pgg.464.2018.10.14.19.15.07; Sun, 14 Oct 2018 19:15:22 -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=@joelfernandes.org header.s=google header.b=bl7y2h3K; 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 S1726539AbeJOJ46 (ORCPT + 99 others); Mon, 15 Oct 2018 05:56:58 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:34162 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbeJOJ45 (ORCPT ); Mon, 15 Oct 2018 05:56:57 -0400 Received: by mail-pl1-f194.google.com with SMTP id f18-v6so8504462plr.1 for ; Sun, 14 Oct 2018 19:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DAG6do8Qbuvxl3VxASK5DL9Y/7NWoA5FaquGDm42Tx0=; b=bl7y2h3KoQJLFBCan8Shl5mib2K10vQrbMsGoEFQPCAw6gRYbQrXblrpTKW0Hlm3sz jRBi9oaIvnADEdevUdePVxYy6M7ns/etK0XTxWDmdvorsNEdxS+ZQxIANv2aZ+vhCWeu +mFvlmAEAs6KMaH/kBpSx4norievrrm+ZgZpU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DAG6do8Qbuvxl3VxASK5DL9Y/7NWoA5FaquGDm42Tx0=; b=kSUmwbh7acH0KeD5WIPd4r/4Gk9faBL/U2cmkLgkht9dqXqw99lcpx0NcstCwcKY/N rqe/pt9w/HtZpBD3sAgNHP3qIkQ56kouLDt85lz4YIaXMnN4MB0Dam0KFuYjvVt6bPGY f87bThKqtVMrhsXU6R0PaMUtanCIagfMsT9rgL8jzwylLZ6dQM6/sECOiYa1tkcgNge4 UOO0aMxELcIO4DTqVxs/luXll/DtgtGPKkco1n8O8DukIQedJFGvF+tAMBJ36bS66ZEI WqGkj4WdMfBozI8fCSilksOR6Hc2fc1yg6ncmrHCcTxTEC2LqhS3gjxc4yxpV4TqaV63 rU2g== X-Gm-Message-State: ABuFfoiC/xBMsO6W80QOEFRmo3AanEc2BE7tsvIhtJRytzRnvotvgaxj HiNwpi7KjlfzvqnkZnqLnAl6Uw== X-Received: by 2002:a17:902:9896:: with SMTP id s22-v6mr14891091plp.113.1539569631208; Sun, 14 Oct 2018 19:13:51 -0700 (PDT) Received: from localhost ([2620:0:1000:1601:3aef:314f:b9ea:889f]) by smtp.gmail.com with ESMTPSA id q2-v6sm12402174pfc.17.2018.10.14.19.13.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Oct 2018 19:13:50 -0700 (PDT) Date: Sun, 14 Oct 2018 19:13:49 -0700 From: Joel Fernandes To: "Paul E. McKenney" 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 Message-ID: <20181015021349.GB217384@joelaf.mtv.corp.google.com> References: <20181014212955.95267-1-joel@joelfernandes.org> <20181014231731.GN2674@linux.ibm.com> <20181015020827.GA217384@joelaf.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181015020827.GA217384@joelaf.mtv.corp.google.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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: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 ;-) 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. thanks, - Joel