From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D8026A009 for ; Fri, 22 Nov 2024 13:56:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732283802; cv=none; b=nU35zQ+HPHXI/YGczqyjD3ESco9FdwmgY7H+vAfIRJ4wttr+4P7AlGaM5LiLBvYoGLvQUy9/70PIdVMWR3Gl8AwpZQW3xEF2ohJvGTURLkuMCDCAPdPkalO2jKkOo2ylsAiKrfsS2pXpAtrkdW0Zo1L+Jh2SWoFgCla0n7rFwdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732283802; c=relaxed/simple; bh=8WMrdbry8cYbb3PwBwFzfa4t8XIIPzo0aJN5xmp6Bzw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=AVcko5PEVaeKJ0WRVocb5Vgmxrs4pqYRaKSEgKrT+OBxFbcWOx35kWe5dCH1steaIfqkti9KlgV3q7ePBO9r5o2pQwzw8+7ipJh4JG+M77hrA3oisAO3fxd7n6uVTLyLMCS/Ez0bZUwUTf7tb+VB+y/Idh4sz+Gv6N8eNweGhNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JT21EBqH; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JT21EBqH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732283800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SsHaI1ei1IfQPr0KsTU1Bgjr9RwL5hBLdlpSc5oHDTU=; b=JT21EBqHCsSyPl3ffxSYLitOS3ro9JY0IAUhMjt9E36t6a+G6X/H/tySP9VReojvYaO77b 6IGOJhOGa70iW84GramlQRpeVRMH6U22TFnURm2+dF89PZ3SaG9KetU82JAEVLekpAqBe1 AumAMroVV+cpwlFwA82P7JIRuEyxAVs= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-46-lzpH3dJhPP-4UD2Eo4-9Lw-1; Fri, 22 Nov 2024 08:56:39 -0500 X-MC-Unique: lzpH3dJhPP-4UD2Eo4-9Lw-1 X-Mimecast-MFC-AGG-ID: lzpH3dJhPP-4UD2Eo4-9Lw Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-381d0582ad3so1508539f8f.0 for ; Fri, 22 Nov 2024 05:56:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732283798; x=1732888598; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SsHaI1ei1IfQPr0KsTU1Bgjr9RwL5hBLdlpSc5oHDTU=; b=NKPGEMwjI/CryRde+AuSpff+rzHkDhZdltmo20HMxTzXVRTGV6c4TqkVo2eF5/PfsS rY3clPt32Jv5azrbcClfsAO80/UIVu9ezZG6h3A0e3McfX2BNGxw/jDNlvifIfz2DANc 1iAnaeuxTWtVJI7HPfen6qPQ5qFipl/umP+aBRRgGT9mQTMVe0riD0Ae8UV7cZr89Mqk ucRz6341wAZ4EeHbGJ/E2thA5ih5L4+gJfs5dplio/eKSkqmGu9Wzn1FoXQfNoeDsAma ZB1p2qMFcBoAW2tNy19c7G7oTaWMly83r3IIG7QsDpzp+BIOWsnSl2OeysKPAdX4UK1u z2KQ== X-Forwarded-Encrypted: i=1; AJvYcCXQ+IHXErjJ/hm9t03p7Vn/O2YfMqJawsiEpGwlbSCPULgnMi0WMUQgfKb4MdkXoqnQjmzNJvBbHLY=@vger.kernel.org X-Gm-Message-State: AOJu0YxsXfUzGetHwasghkpSz/OfiJTws1tMFZpB3/x+cdG8l3pVw71G KbIME/7kdZS3f/pBx+xhRReQQs6rmS7XWoS/c9q/ETooZBT/d6ZDSB0dVnzd1VVDRTuMzOjBcc9 DH8VPmn1ytl2k4CzJDuzuU+pF/EBdQRIrncOB7aq5wPo4oNsTCoUx2p8UCw== X-Gm-Gg: ASbGncssmVvx87a0NbX8Q9R1JbqrbeUuMM/waRkRTEw+Q9HFr1nxDrCXWh0SzO2MYrA YzfzzIKFvAdKij6D/1Wazfl7RH3aJg27yfRRHHkcMj8PLg3znrPx55XVA1tZ26ud/McXx3DVjv3 GGZ7nytcwU5ERaG4qH7u5HuBRw5vxS5FbBwmNxLZEtedSbh35ziNvRWtrVO8DCbgbA6u8Qu0/HQ opaz3yE8h9dCmZ+2X9oDrH38DrvewvoqC1+AaND0h3NEI/kUFxByqXTvhagHLQFwZ5a9bKlGTwW iygpZJ1iLpCnYtE3EgvAdJGsB8fN2SNUtCs= X-Received: by 2002:a5d:64a9:0:b0:382:4fa4:e544 with SMTP id ffacd0b85a97d-38260b3caf5mr2941904f8f.6.1732283797790; Fri, 22 Nov 2024 05:56:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGiRi9yMi/lEmTBvU6LjIZoyT2mo/EJzfL6hLaHeWfXh/dSLFhhXDExODAa08mxumRLkt9jSw== X-Received: by 2002:a5d:64a9:0:b0:382:4fa4:e544 with SMTP id ffacd0b85a97d-38260b3caf5mr2941848f8f.6.1732283797392; Fri, 22 Nov 2024 05:56:37 -0800 (PST) Received: from vschneid-thinkpadt14sgen2i.remote.csb (213-44-141-166.abo.bbox.fr. [213.44.141.166]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fbedf40sm2418281f8f.98.2024.11.22.05.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2024 05:56:36 -0800 (PST) From: Valentin Schneider To: paulmck@kernel.org Cc: linux-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 =?utf-8?Q?Wei=C3=9Fschuh?= , Juri Lelli , Marcelo Tosatti , Yair Podemsky , Daniel Wagner , Petr Tesarik Subject: Re: [RFC PATCH v3 04/15] rcu: Add a small-width RCU watching counter debug option In-Reply-To: References: <20241119153502.41361-1-vschneid@redhat.com> <20241119153502.41361-5-vschneid@redhat.com> Date: Fri, 22 Nov 2024 14:56:34 +0100 Message-ID: Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On 22/11/24 04:53, Paul E. McKenney wrote: > On Tue, Nov 19, 2024 at 04:34:51PM +0100, Valentin Schneider wrote: >> +config RCU_DYNTICKS_TORTURE >> + bool "Minimize RCU dynticks counter size" >> + depends on RCU_EXPERT >> + default n >> + help >> + This option controls the width of the dynticks counter. >> + >> + Lower values will make overflows more frequent, which will increase >> + the likelihood of extending grace-periods. This option sets the width >> + to its minimum usable value. > > The second sentence ("Lower values ...") sounds at first reading like > this Kconfig option directly controls the width. The third sentence sets > things straight, but the reader might well be irretrievably confused by > that point. How about something like this instead? > > help > This option sets the width of the dynticks counter to its > minimum usable value. This minimum width greatly increases > the probability of flushing out bugs involving counter wrap, > but it also increases the probability of extending grace period > durations. This Kconfig option should therefore be avoided in > production due to the consequent increased probability of OOMs. > > This has no value for production and is only for testing. > Much better, I'll take that, thank you! >> endmenu # "RCU Debugging" >> -- >> 2.43.0 >>