Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10399008rwp; Thu, 20 Jul 2023 21:13:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlGtjIvv0w/muZ3Ox2MgedNwiRypfmXhxi+g7IXUBkhHRauc4GzjW+Ha57brtJMs5Qken6y0 X-Received: by 2002:a17:906:7381:b0:994:13c3:2f89 with SMTP id f1-20020a170906738100b0099413c32f89mr884699ejl.27.1689912823325; Thu, 20 Jul 2023 21:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689912823; cv=none; d=google.com; s=arc-20160816; b=kNDFW5LxsKQcNrhg/5yo1+uL3x+gcze6YT+jKOyFAewX2KfTvAd+Bi+9jDXFAgwwln s0C8eg9+g4eF6V4vBH22ny5nrh4Lgisp084OfPO7ZLuvJNffQIOvt/lc0J0lTWwIeza0 C0A61t6IvXAnlLAuLBMwktICkYQOGm2GrKUJtp6BIni+q7ThJvMm/NON+yvopsaJr2Nc ZmoVlbq9ODmPU3jS12+Vx8+XzcCXqnc/glZbl5Ct8Bg639qawltphIha+IOQlFHWsZ2U SxjaulWoU+bzHJS83Kv7v7V4cOlZnPesWDtM2qsd3wa0a8KBW0FjyWLQniuUXe+hr7l0 8ZYw== 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=E/1s4jAOyRPzSxLl/cnB6wdDPsaz28d5sP4sBxsZhPU=; fh=tIwqNrifMyj+c+OgVUCe7I7fIQtM4jtJ/Mna/ALWb2c=; b=ekxPOE+RHNuwiSRsoDwJ60Apwa0kKHUA83JpaCiZvGSS1P4jdPmTc/+8fxpkhqP1LU mh293qisEnF4gPGDCFEH+yJK2jjwinqz+4ZOyZZ/hEi7DVt/9Pszzc3Trk307c/JNxpW H7/lLHc6feOaqP+bCcHcNSRg4aWfHXnX5NDZYPY1X8UL2Djb6F+EIyMYPTtejyHW/ux6 QwnoPtrfnJ6zMhVADYHH7dI0AhepYPhcKOpfFPJFrXR4+W2CB3/0Z6xzFTZq7Mis61a6 GVl/XeILVROlFva/oOd6z00D1mB8Cm6DrwcbWERwpoxoTNReljsv+/kBlJxVqSqkRmMQ IAMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B7y4CM4C; 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 l14-20020a1709066b8e00b00982a267a399si1569648ejr.561.2023.07.20.21.13.19; Thu, 20 Jul 2023 21:13:43 -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=B7y4CM4C; 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 S229961AbjGUEBE (ORCPT + 99 others); Fri, 21 Jul 2023 00:01:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjGUEBB (ORCPT ); Fri, 21 Jul 2023 00:01:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 246161BC1; Thu, 20 Jul 2023 21:01:00 -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 A340F60F75; Fri, 21 Jul 2023 04:00:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05771C433C7; Fri, 21 Jul 2023 04:00:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689912059; bh=PEby7A9sVGRdb+oOMy8/Qs/8RcDGVrpFztRuZoH+h3A=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=B7y4CM4CPm5gM42FGswqGfa2Uf3gGEvcmWfb/lcUgej8juYNphZ5h/4slJxmUO6Gt gPLWhO3/2a/Z5ljESsclOKvZTJIJOSduYTMFu/bi8VluSExtItl5Bx6f5J8d7nVlMO 386lWVphJER+giXAPgEbqoDg8/z2BzDHRuZaKsWGvMjJzXP4oGz0sHvbrcNKNac2aB 6b10sJbP5U+dNDZkFt2BRK/emYxq/A3mQYI4bhXdtCIylrNcmrAGgl/1Vr3Ns03hCe Jz8PEOLvwIAHLjilOZtAYhiIeTclmiXt69+/n70rKS+IRv+tb0Ru+fwiPtWla8PHZk BmazTVkFzm+ZA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 92D25CE09F7; Thu, 20 Jul 2023 21:00:58 -0700 (PDT) Date: Thu, 20 Jul 2023 21:00:58 -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: <5143d0a9-bc02-4b9a-8613-2383bfdee35c@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20230720163056.2564824-1-vschneid@redhat.com> <20230720163056.2564824-18-vschneid@redhat.com> <24b55289-1c35-41cc-9ad3-baa957f1c9cb@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24b55289-1c35-41cc-9ad3-baa957f1c9cb@paulmck-laptop> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 12:53:05PM -0700, Paul E. McKenney wrote: > 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. Please see below for the version of this patch that I am running overnight tests with. Does this one work for you? Thanx, Paul ------------------------------------------------------------------------ commit 1aa13731e665193cd833edac5ebc86a9c3fea2b7 Author: Valentin Schneider Date: Thu Jul 20 20:58:41 2023 -0700 rcutorture: Add a test config to torture test low RCU_DYNTICKS width We now have an RCU_EXPORT knob for configuring the size of the dynticks counter: CONFIG_RCU_DYNTICKS_BITS. Modify scenario TREE04 to exercise a a ridiculously small counter (2 bits). Link: http://lore.kernel.org/r/4c2cb573-168f-4806-b1d9-164e8276e66a@paulmck-laptop Suggested-by: Paul E. McKenney Signed-off-by: Valentin Schneider Signed-off-by: Paul E. McKenney diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE04 b/tools/testing/selftests/rcutorture/configs/rcu/TREE04 index dc4985064b3a..aa7274efd981 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/TREE04 +++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE04 @@ -16,3 +16,4 @@ CONFIG_DEBUG_OBJECTS_RCU_HEAD=n CONFIG_RCU_EXPERT=y CONFIG_RCU_EQS_DEBUG=y CONFIG_RCU_LAZY=y +CONFIG_RCU_DYNTICKS_BITS=2