linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Waiman Long <longman@redhat.com>
To: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>,
	Boqun Feng <boqun.feng@gmail.com>
Cc: dsterba@suse.cz, Btrfs BTRFS <linux-btrfs@vger.kernel.org>,
	Linux List Kernel Mailing <linux-kernel@vger.kernel.org>,
	Chris Murphy <lists@colorremedies.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>, Will Deacon <will@kernel.org>,
	Joel Fernandes <joel@joelfernandes.org>
Subject: Re: BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
Date: Thu, 26 Jan 2023 19:20:25 -0500	[thread overview]
Message-ID: <a8992f62-06e6-b183-3ab5-8118343efb3f@redhat.com> (raw)
In-Reply-To: <CABXGCsMD6nAPpF34c6oMK47kHUQqADQPUCWrxyY7WFiKi1qPNg@mail.gmail.com>


On 1/26/23 17:42, Mikhail Gavrilov wrote:
>> I'm not sure whether these options are better than just increasing the
>> number, maybe to unblock your ASAP, you can try make it 30 and make sure
>> you have large enough memory to test.
> About just to increase the LOCKDEP_CHAINS_BITS by 1. Where should this
> be done? In vanilla kernel on kernel.org? In a specific distribution?
> or the user must rebuild the kernel himself? Maybe increase
> LOCKDEP_CHAINS_BITS by 1 is most reliable solution, but it difficult
> to distribute to end users because the meaning of using packaged
> distributions is lost (user should change LOCKDEP_CHAINS_BITS in
> config and rebuild the kernel by yourself).

Note that lockdep is typically only enabled in a debug kernel shipped by 
a distro because of the high performance overhead. The non-debug kernel 
doesn't have lockdep enabled. When LOCKDEP_CHAINS_BITS isn't big enough 
when testing on the debug kernel, you can file a ticket to the distro 
asking for an increase in CONFIG_LOCKDEP_CHAIN_BITS. Or you can build 
your own debug kernel with a bigger CONFIG_LOCKDEP_CHAIN_BITS.

Cheers,
Longman


  parent reply	other threads:[~2023-01-27  0:21 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-26 12:32 BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! Mikhail Gavrilov
2022-07-26 16:42 ` David Sterba
2022-07-26 19:19   ` Chris Murphy
2022-07-26 19:21     ` Chris Murphy
2022-07-26 20:42       ` David Sterba
2022-08-03 19:28   ` Mikhail Gavrilov
2022-08-03 20:00     ` Chris Murphy
2022-08-04  7:35       ` Mikhail Gavrilov
2022-08-04 11:23         ` Tetsuo Handa
2023-01-24 20:27   ` Mikhail Gavrilov
2023-01-25 17:15     ` David Sterba
2023-01-26  9:47       ` Mikhail Gavrilov
2023-01-26 17:38         ` Boqun Feng
2023-01-26 18:30           ` Waiman Long
2023-01-26 18:59             ` Boqun Feng
2023-01-26 19:07               ` Waiman Long
2023-01-26 22:42           ` Mikhail Gavrilov
2023-01-26 22:51             ` Boqun Feng
2023-01-26 23:49             ` Boqun Feng
2023-01-27  0:20             ` Waiman Long [this message]
2023-01-27  3:37               ` Chris Murphy
2023-01-27  4:07                 ` Boqun Feng
2023-01-27  5:35                   ` Mikhail Gavrilov
2023-01-27 14:26                   ` Waiman Long
2023-01-27 15:33                     ` Chris Murphy
2025-03-09 22:51                       ` Mikhail Gavrilov
2025-03-10 11:23                         ` Peter Zijlstra
2025-03-10  9:08                 ` Peter Zijlstra
2025-03-10 13:01                   ` Peter Zijlstra
2025-03-10 11:21           ` Peter Zijlstra
2025-03-10 16:37             ` Boqun Feng
2025-09-23  7:03               ` Mikhail Gavrilov
  -- strict thread matches above, loose matches on Subject: below --
2021-03-02 10:27 Johannes Thumshirn
2021-03-04 13:52 ` David Sterba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a8992f62-06e6-b183-3ab5-8118343efb3f@redhat.com \
    --to=longman@redhat.com \
    --cc=boqun.feng@gmail.com \
    --cc=dsterba@suse.cz \
    --cc=joel@joelfernandes.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lists@colorremedies.com \
    --cc=mikhail.v.gavrilov@gmail.com \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).