Re: [PATCH 0/8] lockdep: change 5 graph-db arrays to AofAs, fill from memblock pool

From: Peter Zijlstra

Date: Thu Aug 27 2026 - 02:46:38 EST


On Wed, Aug 26, 2026 at 09:58:32PM -0600, Jim Cromie wrote:
> Lockdep cannot rely upon any other subsystem that uses locks, so since
> inception, its graph-db has been stored in static arrays, pinning ~10
> MB in .bss. This is a hardcoded compromise between embedded and
> enterprise hardware.
>
> However, if it acts early, lockdep can pre-allocate a pool of slabs
> from memblock_alloc(), enough for its lifetime of anticipated workloads.
> Then it can allocate them as needed to provide new segments/slabs to
> the graph-db.
>

Why? I really don't understand why. Who cares about this bss stuff.