From patchwork Thu Jul 20 16:30:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin Schneider X-Patchwork-Id: 13320801 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6B01EB64DC for ; Thu, 20 Jul 2023 16:34:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 66E4C28013F; Thu, 20 Jul 2023 12:34:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 61F2128004C; Thu, 20 Jul 2023 12:34:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4724828013F; Thu, 20 Jul 2023 12:34:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 3A33128004C for ; Thu, 20 Jul 2023 12:34:25 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 100518020D for ; Thu, 20 Jul 2023 16:34:25 +0000 (UTC) X-FDA: 81032538090.02.D8FBA0B Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf06.hostedemail.com (Postfix) with ESMTP id 53F97180011 for ; Thu, 20 Jul 2023 16:34:23 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=MpjZgTy+; spf=pass (imf06.hostedemail.com: domain of vschneid@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=vschneid@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689870863; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=D+WoXJvLSOgt+Kve5Q+fkVLRoN9HdK3x6VSzpxIN5vU=; b=z3PE6kDY7xmCE65jNul/aEpe8+tY/g9aV5TUkOpqXWuQm9GxsBJfb8rgB1Tqtkz6GzxCr5 V27A0ksV3HCHd0P9DAuT+HD1MfqPQW8m27x8S1EHnipyGfvAyynpoaXKsxKwL2Q+EsQ0tZ 0+o95IjsJqWWdhTSRqOSYA9CF3dqutg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689870863; a=rsa-sha256; cv=none; b=NcFuVCJ+R1RW1imgk6sPjj65sGxkH9H0P33MwaPtzXguM29Ouv7X5ybu1bJ3IdkKTa+goU jXI112p9R+W0m/G2axuyrLfq2ekMa77CYxg9Dn+gkpWfhmRt5aqeZ44G6kNry5g1c3/ZFS JW5YbJLOhCJycC8uBiSGK7uLfbvcBA8= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=MpjZgTy+; spf=pass (imf06.hostedemail.com: domain of vschneid@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=vschneid@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689870862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D+WoXJvLSOgt+Kve5Q+fkVLRoN9HdK3x6VSzpxIN5vU=; b=MpjZgTy+FyLJp4Tzz9180XUCw9rP7JhSugHK0mrM/krsclQajkpXnoDkEH8YjH04ol9t/K Y4t3U3MX8GbQqgqebokWfGt+xWDcsBLfNSupHacylk2AbRbFKPnBuNul0sYmXTOtFbraJT nx8E9+XPBhJ8hsMNVsFcveVZ6haxMww= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-225-n6Pvv7lTMfCgsmkY3ui-qw-1; Thu, 20 Jul 2023 12:34:19 -0400 X-MC-Unique: n6Pvv7lTMfCgsmkY3ui-qw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5937B185A78F; Thu, 20 Jul 2023 16:34:16 +0000 (UTC) Received: from vschneid.remote.csb (unknown [10.42.28.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8D32A40C2070; Thu, 20 Jul 2023 16:34:08 +0000 (UTC) From: Valentin Schneider To: 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 Cc: "Paul E . McKenney" , 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 , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Juri Lelli , Daniel Bristot de Oliveira , Marcelo Tosatti , Yair Podemsky Subject: [RFC PATCH v2 17/20] rcutorture: Add a test config to torture test low RCU_DYNTICKS width Date: Thu, 20 Jul 2023 17:30:53 +0100 Message-Id: <20230720163056.2564824-18-vschneid@redhat.com> In-Reply-To: <20230720163056.2564824-1-vschneid@redhat.com> References: <20230720163056.2564824-1-vschneid@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Rspamd-Queue-Id: 53F97180011 X-Rspam-User: X-Stat-Signature: ms1i71qegis487kstr63mks435fg7gtb X-Rspamd-Server: rspam03 X-HE-Tag: 1689870863-797680 X-HE-Meta: U2FsdGVkX1/SKRNZMr0OrDBr8ec1x0/4hCAmR5xxJkeGOcD9a+jRBufe4+yCXYJS0exutwy4o11wq3hwppcFtOjdAFAvtw+QLOjAvpUWhDVuGUlGVJtQsFizm/vLZjIGRD3d1hceHGa42YYzNiqrDibdFXRLTSMHLQ9mgqFrHLr1sfX4SjHJNTt1WhVdXXqv2Gym9ImUME6awUiD5cUuA2jWT92EEn0voo6PUasoBQwXnICSDcanxt5nPd88xGx5zBIIUO+Wy9j5Jv8kmsks103EV7iUGz/FqCmUjyOLdgJ7od0bREG6Fs61/Uz1tpOLVrxXW5vO5kyn4T5jTcXy11AQg+xUeyINyxKtwjMwAfBfw5slZuU1aBMZXO2knAq/6ZXdEmCVAxWd2pJE8VMhP7YGxZHS5jfMkgwa2Ixl79f58zWbm7zVJGosD0XLQvEcVwP+XwIwmHFFiSLtVQo7M9hY6oVBt4viZYqk08Kk5L8YXlDy07440m+fmW7WaBw/BB94+OVPOkb9idFryqDbk0k3fozwg+eeYNKu5icAaztBdvvYiH/LUzuA8O9ancK1u0AjNLD1fBn4P/ZkUJQFEexzCBZ5WJKMg2klMqJVOSCyEoNfhPqELvwXchIPV84slxJxvj6wo2wsHiK+rBGYpd+T8w4FIpcS/VKQxxRsVIA2gKroR+QdmDDs+2JYXGRVqSSf5NKzI5bxHUe3Ozu41IEu940KEOdGq1tnaDYiwZYF6XQ8WLkr0W8eXf6KWWq7Tdwec3gsWQgHOZVszPAQs4DIZ58Spz4/rC6ABeKBIAVMePs5wTMBF8fj/F3X22AE4zp0rXZ+S5LLHBEAwgrVyHFR1STYaDDsarSqblmL4mC8EpPnfEfw+6T0I1ygm3j6JafuIetKOlNlx61w9XP84RzdG2D57NCCmgI2PGBl1lFYxAkok4nJ3j3jAuesbYj+1D1vhwTi04Rv2TPhrcb uG1YU8s7 kQzXi9c02y0w7WGQLxXP+nbU6YaA8GmbKDsF966dfUCEXpcoMcwsTjk4x85Ypihzxcy9ppg1W1QClIW9Jyk4NKOalHKXAflU0/N4P7lroAL14RANCyvMzVRgsdDT+XZfSRn5ghLNeY155Xl2c0CNMEMABZ2apAdPqDWxlW68BN2hY9VCJQsyrfZ3WBdTbyvgurrhnCtA4VMowMao4/SZUmGrDNY9i7ScGhz3xu9OaYoRRdktOkHr0zyCq4/c5AG6fsKcX9K1MuF2eNZD32AkE/QOq2cccGc5cV7qrxwsqSdwseIxCbkW0znDAhG4OtWd5e/CN1b5aWq2pOkPkHoe5glD8ktLPYFpIRNFe X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 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