Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp505802imn; Wed, 3 Aug 2022 13:15:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Em3S1GjphT4H1ZBGYXfvusb8ysNhNJmOeQRR4lwGwHXq5fjQI1LaM2lh43j1yPU4fcJ+f X-Received: by 2002:a63:eb10:0:b0:41c:3d64:8d3 with SMTP id t16-20020a63eb10000000b0041c3d6408d3mr10295020pgh.178.1659557719893; Wed, 03 Aug 2022 13:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659557719; cv=none; d=google.com; s=arc-20160816; b=cPLJly+K3gF/UpM/FgQlfN3Sm13ma4HDfoSUoRZubxdJS+eXPEqTZVpErrYhcuhZ/n fHCFz4StNJZ5M4WpRLSfdn0+0pcSkUJMedK33k9WwSBON+7zOqdy+FAYqxH6O1C7FA6B sDid6YBg22Ypc3Z2+OCcONow3t3ekjVxF+ExDuio2G8KDt6+4LhLVA09a10XmB9IHaqV focrryEnFS6iv67/epDW/XqCzFsUc8Sfu/RaabIDElvGq0tgwtVzT/R2hcIOiQPqJvp0 O8oAiivY2ahfdrgbnYY5tS7Pll5AOozd4Giw/Gud7tx9A6025TKNmXWSysz83TmTdm66 PumQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=aQAgnwwHsBgv1g2PrR0xhkq6jXoEU2i3Abs0rA+lRiU=; b=PwUx7J/sFCYo/wfjYet3iq+qR4SyCYqCAzdzgPq9/E3vw56zYFqUMBFFt5YZC5AePf UEZPJUlD3uh4b8zuuqumrVG8H38FbnQSzObQ2CsjNP5GdWcDqbJc1995ELbktQH9TdS6 4W/aXzzfTvXmSx8KDwqMxBAqi1EvioCBkCSBvDsD0r1SWu09t1Ei/xetws6sBXBwubsg tm12nrkRdIght3zfaqoZmsQfRD96mEb7Dc5omuYoTN8ZByd8HwbmZ520/M/bPqAzxMKJ ykd3s3kT0B+kKCMM3gZiZ0bFYcn7UbGPkUVcyAD5N3mSxsflT3t7s1hJMgRzLeb/0COb NM0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@colorremedies.com header.s=fm1 header.b=utc2P+Lf; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=T7CVZBFD; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a634b47000000b0040ccfa0a0dbsi4809624pgl.480.2022.08.03.13.14.48; Wed, 03 Aug 2022 13:15:19 -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=@colorremedies.com header.s=fm1 header.b=utc2P+Lf; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=T7CVZBFD; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236531AbiHCUBS (ORCPT + 99 others); Wed, 3 Aug 2022 16:01:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbiHCUBR (ORCPT ); Wed, 3 Aug 2022 16:01:17 -0400 Received: from wnew1-smtp.messagingengine.com (wnew1-smtp.messagingengine.com [64.147.123.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84CFC13FB9; Wed, 3 Aug 2022 13:01:14 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id A435D2B05A24; Wed, 3 Aug 2022 16:01:11 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute3.internal (MEProxy); Wed, 03 Aug 2022 16:01:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= colorremedies.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1659556871; x= 1659560471; bh=aQAgnwwHsBgv1g2PrR0xhkq6jXoEU2i3Abs0rA+lRiU=; b=u tc2P+LfVOzmagABHIY/CytS+1BHvgFBr9eSLQ7vVipWcMeaz7F0OoaZlahIjdDbL 0P2eRJn/GTQP2LNmXVtOSi/usoyK75wke+LOFmsigCovf0+hvGFc2C48hUtLFg0V dLTj3+QfdSQ0hE0ptf8MfC4lYW7lyWauRji8gtxLYZRY9iMphnF3fgpe/d6XLBk+ LRzRKGnkdjL1CROhSuRp9aQ8zex5Aaew61dnm5MGJVWu5NSW3A75Ji7Yqwhhl/cK 7X1OIfUe5rjnJqFZ+f/9h6l33aXb2GO7KpwyEB+SEuf7HasG51WPIC8V8sIDlmWK M/ibo6tTDJXdMvBgxoHgg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1659556871; x=1659560471; bh=aQAgnwwHsBgv1g2PrR0xhkq6jXoE U2i3Abs0rA+lRiU=; b=T7CVZBFDdm69u+GwrJ1Odko1pohpEj6Jbr02PEdm3pja LZsB23txNLX/J7PvBE4gqKSedUdf/YjrczOCCI9ap/Retq3ttDCVzxG0uGJ3xq2W xjf8FIXiGuULXiV7XtDhkd+M/O1iaU8hDFwloro8bJOHHXpsJHZNQSQOy7AzpGV/ 0hLDoSxqypempECpe2yaflxuTM2FwvIusIXttjBOzIFuuKd2ekmfDB3qDWPsl6eJ rsYlkHZM488YakSMa1rFOmjqJNMTFrvn6p7gvgVHSVUEh5A3EjqlBbGnZVW93iUJ m9X/69SsyHcVIEKSvP8D3b1+qMDmdM6sM+QE72MtsA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddvjedgudeghecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdev hhhrihhsucfouhhrphhhhidfuceolhhishhtshestgholhhorhhrvghmvgguihgvshdrtg homheqnecuggftrfgrthhtvghrnheplefgfeduvdfhheeviedutdevtddtjeeukeehleej leettedtueeutdeuhfffheevnecuffhomhgrihhnpehgihhtlhgrsgdrtghomhenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlihhsthhssegt ohhlohhrrhgvmhgvughivghsrdgtohhm X-ME-Proxy: Feedback-ID: i06494636:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 132B6170007E; Wed, 3 Aug 2022 16:01:09 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-758-ge0d20a54e1-fm-20220729.001-ge0d20a54 Mime-Version: 1.0 Message-Id: <1d1afda7-2b4b-4984-adbe-51339ebbdd18@www.fastmail.com> In-Reply-To: References: <20220726164250.GE13489@twin.jikos.cz> Date: Wed, 03 Aug 2022 16:00:40 -0400 From: "Chris Murphy" To: =?UTF-8?Q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB_=D0=93=D0=B0=D0=B2=D1=80?= =?UTF-8?Q?=D0=B8=D0=BB=D0=BE=D0=B2?= , "David Sterba" , "Btrfs BTRFS" , linux-kernel Cc: "Tetsuo Handa" , dvyukov@google.com Subject: Re: BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham 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 Wed, Aug 3, 2022, at 3:28 PM, Mikhail Gavrilov wrote: > On Tue, Jul 26, 2022 at 9:47 PM David Sterba wrote: >> >> On Tue, Jul 26, 2022 at 05:32:54PM +0500, Mikhail Gavrilov wrote: >> > Hi guys. >> > Always with intensive writing on a btrfs volume, the message "BUG: >> > MAX_LOCKDEP_CHAIN_HLOCKS too low!" appears in the kernel logs. >> >> Increase the config value of LOCKDEP_CHAINS_BITS, default is 16, 18 >> tends to work. > > I confirm that after bumping LOCKDEP_CHAINS_BITS to 18 several days of > continuous writing on the BTRFS partition with different files with a > total size of 10Tb I didn't see this kernel bug message again. > Tetsuo, I saw your commit 5dc33592e95534dc8455ce3e9baaaf3dae0fff82 [1] > set for LOCKDEP_CHAINS_BITS default value 16. > Why not increase LOCKDEP_CHAINS_BITS to 18 by default? This will be making it into Fedora debug kernels, which have lockdep enabled on them, starting with 5.20 series, which are now building in koji. https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1921 -- Chris Murphy