Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10006919rwp; Thu, 20 Jul 2023 13:07:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlG5jf4dWYcIBHuiUvsJmZevZuaQU2IZP3LvjskwPwp2+Ekx+hvCLhRKPg2c/o/lz7XZSbKq X-Received: by 2002:a05:6870:a453:b0:1b4:4937:37 with SMTP id n19-20020a056870a45300b001b449370037mr757265oal.12.1689883632709; Thu, 20 Jul 2023 13:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689883632; cv=none; d=google.com; s=arc-20160816; b=dYOehvF1jeHDR+zJu0+VZMShXxgeZrunoePkipS79deIXjEFpfp+B3VqHq+Noui5iS +QZDcnMLm46Uw67ikrr8l2IfN755Hut7N0tuXTf25XPk6SH7pN6M96zQyXwYdXeGUnuR jCPIUgYJxC6KQIQRsAG8RE9I6OYo16tsX4HnwCO+1oJMlC18i7M43tevELWk1CX4BT8M c9mMUxc1s+/ZkflibffK8UNDW8QRhHfvFYpXUBcS4sY8QBRcq0hjA6ftFpLyDpxeOgq6 1skH44YVC8WkYlwcRiCvXS+XLcqoU/cpzfjB1YDbhY0nCtcyOC0fXm87fT6EMuE+6W6l le8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=eflLkbr9OUwqEZAXOPYseGjXGabNe8/KX4gc5DkFPuU=; fh=tIwqNrifMyj+c+OgVUCe7I7fIQtM4jtJ/Mna/ALWb2c=; b=koZ6+43QDzIuynCWga4BwKIDTg+uvOavFZNWegtmfhhrSQiOs9SvlBm1m49Ct9PewF xIQVlwUrpVvdixWGAvsozgikDsnCz/gQg6UFuCxI3zFR/42A78SiTpZbv6gC5HJa3PF3 zSULmzQ7+E7OJ4Cyzps453PCfe+Lrvd2F/3YxocaUatnBWz4WNnQklhamTxj9QH171eT 0/UhgDQ06ean7u+mBN6VjOWczkCbaiuOmkknSEceKNmSQOePQxLWmqMDQ5gspjx/s7le +RZSCV/TWMvNTwymJCvbHpo2dmjopExeZal1413Cp9C6EOx+tgO4t4oClGvy+FGL5mkV 78yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rt1oe06e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a639a51000000b00553d5cc2c8bsi1328322pgo.508.2023.07.20.13.06.59; Thu, 20 Jul 2023 13:07:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rt1oe06e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230142AbjGTTxJ (ORCPT + 99 others); Thu, 20 Jul 2023 15:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbjGTTxI (ORCPT ); Thu, 20 Jul 2023 15:53:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 202DA1BC1; Thu, 20 Jul 2023 12:53:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6294061C4E; Thu, 20 Jul 2023 19:53:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF8E0C433C8; Thu, 20 Jul 2023 19:53:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689882785; bh=f2zoX/f2BDWXdTqXLQTyx96joLx1NKF0n400nYI5mHs=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=rt1oe06eBVoHzBMd47hKt4olPkaF18XXvn1lyClLZKV6+ZHxv6EpK+TUu9b07DlTT Zca8fuPLdqwjPzJe9xU7W7nlQHTmn1+IuzoXDyJzDc5b4cAutVAPBvBZYKhocIx027 K+MjktTzgY4QiuRVnLdG79zzeH+/qZgtDlEcAW2Ovul+iOKkUleYhVAJxseB1x9mOR SjgkUoHScZpkz2XmAtgze6BTT56VqgeixCI2mEGvozqv9lmgVYYbudDiT3orqzpwQ+ 3LKVCGaSveRlC6eR8TB2o4O7GHx7/QAY3ehnWzXbu6UG1961PabOzPMK9xaksANQNa gkrKkk2S4w12Q== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 48CD5CE03CF; Thu, 20 Jul 2023 12:53:05 -0700 (PDT) Date: Thu, 20 Jul 2023 12:53:05 -0700 From: "Paul E. McKenney" To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org, x86@kernel.org, rcu@vger.kernel.org, linux-kselftest@vger.kernel.org, Steven Rostedt , Masami Hiramatsu , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Paolo Bonzini , Wanpeng Li , Vitaly Kuznetsov , Andy Lutomirski , Peter Zijlstra , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , Lorenzo Stoakes , Josh Poimboeuf , Jason Baron , Kees Cook , Sami Tolvanen , Ard Biesheuvel , Nicholas Piggin , Juerg Haefliger , Nicolas Saenz Julienne , "Kirill A. Shutemov" , Nadav Amit , Dan Carpenter , Chuang Wang , Yang Jihong , Petr Mladek , "Jason A. Donenfeld" , Song Liu , Julian Pidancet , Tom Lendacky , Dionna Glaze , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Juri Lelli , Daniel Bristot de Oliveira , Marcelo Tosatti , Yair Podemsky Subject: Re: [RFC PATCH v2 17/20] rcutorture: Add a test config to torture test low RCU_DYNTICKS width Message-ID: <24b55289-1c35-41cc-9ad3-baa957f1c9cb@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20230720163056.2564824-1-vschneid@redhat.com> <20230720163056.2564824-18-vschneid@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230720163056.2564824-18-vschneid@redhat.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 20, 2023 at 05:30:53PM +0100, Valentin Schneider wrote: > We now have an RCU_EXPORT knob for configuring the size of the dynticks > counter: CONFIG_RCU_DYNTICKS_BITS. > > Add a torture config for a ridiculously small counter (2 bits). This is ac > opy of TREE4 with the added counter size restriction. > > Link: http://lore.kernel.org/r/4c2cb573-168f-4806-b1d9-164e8276e66a@paulmck-laptop > Suggested-by: Paul E. McKenney > Signed-off-by: Valentin Schneider > --- > .../selftests/rcutorture/configs/rcu/TREE11 | 19 +++++++++++++++++++ > .../rcutorture/configs/rcu/TREE11.boot | 1 + > 2 files changed, 20 insertions(+) > create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/TREE11 > create mode 100644 tools/testing/selftests/rcutorture/configs/rcu/TREE11.boot > > diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE11 b/tools/testing/selftests/rcutorture/configs/rcu/TREE11 > new file mode 100644 > index 0000000000000..aa7274efd9819 > --- /dev/null > +++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE11 > @@ -0,0 +1,19 @@ > +CONFIG_SMP=y > +CONFIG_NR_CPUS=8 > +CONFIG_PREEMPT_NONE=n > +CONFIG_PREEMPT_VOLUNTARY=y > +CONFIG_PREEMPT=n > +CONFIG_PREEMPT_DYNAMIC=n > +#CHECK#CONFIG_TREE_RCU=y > +CONFIG_HZ_PERIODIC=n > +CONFIG_NO_HZ_IDLE=n > +CONFIG_NO_HZ_FULL=y > +CONFIG_RCU_TRACE=y > +CONFIG_RCU_FANOUT=4 > +CONFIG_RCU_FANOUT_LEAF=3 > +CONFIG_DEBUG_LOCK_ALLOC=n > +CONFIG_DEBUG_OBJECTS_RCU_HEAD=n > +CONFIG_RCU_EXPERT=y > +CONFIG_RCU_EQS_DEBUG=y > +CONFIG_RCU_LAZY=y > +CONFIG_RCU_DYNTICKS_BITS=2 Why not just add this last line to the existing TREE04 scenario? That would ensure that it gets tested regularly without extending the time required to run a full set of rcutorture tests. > diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE11.boot b/tools/testing/selftests/rcutorture/configs/rcu/TREE11.boot > new file mode 100644 > index 0000000000000..a8d94caf7d2fd > --- /dev/null > +++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE11.boot > @@ -0,0 +1 @@ > +rcutree.rcu_fanout_leaf=4 nohz_full=1-N > -- > 2.31.1 >