Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp62718imm; Fri, 21 Sep 2018 18:15:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV61V+GJr/nXcIh7ywqeuogKa/YRUT6esXNQy4wVl9tYrLtoTN35RlK1yY8nxhRQZcpsrJ6+b X-Received: by 2002:a17:902:d216:: with SMTP id t22-v6mr248325ply.338.1537578919951; Fri, 21 Sep 2018 18:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537578919; cv=none; d=google.com; s=arc-20160816; b=Ib25ZZwW0ppx4nCWMA7B6J+UGfZuZTax3NKjmR8PDLce58POcGCfvpdaZduUygxFnS bSM1+EaFaNDlMjIuPq/1/oNZ5QmBcyUkVsW/jwfUVobflwyotQAQL1ATqVnW7NjELJMj +XByPSHJDknMAdY9tDcfh1/s5GVhmlCFmdxXQ90n6fX2mCpje37TGz6hiky9b1oMngxK rGnKs+WMp8vP7fFmmISA3S9DgWNbAkIgyAtbqghutbCocTNrXumWS+9EnGyS4/8F+ObZ re2pZ6LpRYIJAl+JdNWwHI7owAY/SrUYv6ANxD8tbGtqR6Jdx089q7yGPifrInHGplfd Nr+Q== 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=W7YYGYO0MNm4zeIEluHjhk4Av3TPdFeRczq34w7wQ6Y=; b=n9ehngl3ohHjX2m3M343MUoyO05u/9ykE4Gt7YtImUTAKV80vlBibYFlZRRwGarzjL 7Hebnd/WqPz1rMh0s5fnnj2TMnLja1ykcR4hENg5ve76iDSbS2cVxdjOrnmB6CY2wE4V Ezq2euxj5jL1dV5Mw9J3g0V+L62vHRX/f6Gbro1yV4SVz14E7dmcwqyEszdL+rJqg3AD 4Fn1bLSuJJ3HdfHbIOAkG9CbSQgWGoVv/xAsz31U64vTKnKo18JBEwImTQ9VPCcfuSEc 27902WYx9uC6C+xJt3xjOcTgQWNK6FbDDwdN9+kIdg73IvKh0eZabEaDY7edZly8c68Q v2iA== 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 r7-v6si3971706pfi.147.2018.09.21.18.14.40; Fri, 21 Sep 2018 18:15:19 -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 S2391614AbeIVHGE (ORCPT + 99 others); Sat, 22 Sep 2018 03:06:04 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:33232 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbeIVHGD (ORCPT ); Sat, 22 Sep 2018 03:06:03 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8M19I1Y051457 for ; Fri, 21 Sep 2018 21:14:35 -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 2mnabxjnxb-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 21 Sep 2018 21:14:35 -0400 Received: from localhost by e15.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Sep 2018 21:14:34 -0400 Received: from b01cxnp22036.gho.pok.ibm.com (9.57.198.26) 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) Fri, 21 Sep 2018 21:14:29 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8M1ETq429229100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 22 Sep 2018 01:14:29 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DF817B2067; Fri, 21 Sep 2018 21:12:54 -0400 (EDT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BFC63B2065; Fri, 21 Sep 2018 21:12:54 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.85.169.26]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 21 Sep 2018 21:12:54 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 89A8E16C1EA9; Fri, 21 Sep 2018 18:14:28 -0700 (PDT) Date: Fri, 21 Sep 2018 18:14:28 -0700 From: "Paul E. McKenney" To: "Joel Fernandes (Google)" 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] Documentation: RCU: Clarify comment about fanout Reply-To: paulmck@linux.ibm.com References: <20180921223153.114728-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180921223153.114728-1-joel@joelfernandes.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18092201-0068-0000-0000-00000340360A X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009749; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01091778; UDB=6.00564141; IPR=6.00871803; MB=3.00023443; MTD=3.00000008; XFM=3.00000015; UTC=2018-09-22 01:14:32 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18092201-0069-0000-0000-000045D11C34 Message-Id: <20180922011428.GU4222@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-22_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-1809220010 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 21, 2018 at 06:31:53PM -0400, Joel Fernandes (Google) wrote: > RCU Data-Structures document describes a trick to test RCU with small > number of CPUs but with a larger tree. It wasn't immediately clear how > the document arrived at 16 CPUs which also requires setting the > FANOUT_LEAF to 2 instead of the default of 16. Clarify that. > > Signed-off-by: Joel Fernandes (Google) Good catch, applied, thank you! You know, those two Kconfig options are so closely linked in my mind that I doubt if I would ever have noticed this issue. So good show! I of course could not resist doing a bit of editing. Could you please check the following to make sure that I didn't mess something up? Thanx, Paul ------------------------------------------------------------------------ commit 9870c5b0f7b41a7b6085c20c22b320681800dabc Author: Joel Fernandes (Google) Date: Fri Sep 21 18:31:53 2018 -0400 doc: Clarify RCU data-structure comment about rcu_tree fanout RCU Data-Structures document describes a trick to test RCU with small number of CPUs but with a taller tree. It wasn't immediately clear how the document arrived at 16 CPUs which also requires setting the FANOUT_LEAF to 2 instead of the default of 16. This commit therefore provides the needed clarification. Signed-off-by: Joel Fernandes (Google) Signed-off-by: Paul E. McKenney diff --git a/Documentation/RCU/Design/Data-Structures/Data-Structures.html b/Documentation/RCU/Design/Data-Structures/Data-Structures.html index 1d2051c0c3fc..476b1ac38e4c 100644 --- a/Documentation/RCU/Design/Data-Structures/Data-Structures.html +++ b/Documentation/RCU/Design/Data-Structures/Data-Structures.html @@ -127,9 +127,11 @@ CPUs, RCU would configure the rcu_node tree as follows:

RCU currently permits up to a four-level tree, which on a 64-bit system accommodates up to 4,194,304 CPUs, though only a mere 524,288 CPUs for 32-bit systems. -On the other hand, you can set CONFIG_RCU_FANOUT to be -as small as 2 if you wish, which would permit only 16 CPUs, which -is useful for testing. +On the other hand, you can set both CONFIG_RCU_FANOUT and +CONFIG_RCU_FANOUT_LEAF to be as small as 2, which would result +in a 16-CPU test using a 4-level tree. +This can be useful for testing large-system capabilities on small test +machines.

This multi-level combining tree allows us to get most of the performance and scalability