Re: [PATCH] debugobjects: Allow to configure the amount of pre-allocated objects

From: Benjamin Block

Date: Fri Mar 13 2026 - 10:32:12 EST


On Wed, Mar 11, 2026 at 10:47:27AM -0700, Andrew Morton wrote:
> On Wed, 11 Mar 2026 11:04:31 +0100 Benjamin Block <bblock@xxxxxxxxxxxxx> wrote:
>
> > > ---
> > > lib/Kconfig.debug | 32 ++++++++++++++++++++++++++++++++
> > > lib/debugobjects.c | 15 +++++++++++++--
> > > 2 files changed, 45 insertions(+), 2 deletions(-)
> >
> > Gentle ping, any comments at all for tis?
>
> Normally tglx stuff, but lgtm so I'll add it to mm.git and linux-next
> for some test.

Thanks.

> obj_static_pool[] is __initdata, so the consequences of making it large
> are very slight. So do we really need
> CONFIG_DEBUG_OBJECTS_POOL_SIZE_SHIFT? Requiring a rebuild is a huge
> hassle. How about simply making the static pool much larger and leave
> it at that?

I was thinking about that but then couldn't decide what would be "big enough"
as constant value for "everyone". My test systems wasn't even that "big", and
I'm already at 1280 KiB reservation to make ODEBUG "survive" the boot. Not
sure I want to make this say 2 MiB without config option for everyone.

> Some statement (or, better, comment) which reveals the number of bytes which
> are (temporarily) consumed would be useful.

--
Best Regards, Benjamin Block / Linux on IBM Z Kernel Development
IBM Deutschland Research & Development GmbH / https://www.ibm.com/privacy
Vors. Aufs.-R.: Wolfgang Wendt / Geschäftsführung: David Faller
Sitz der Ges.: Ehningen / Registergericht: AmtsG Stuttgart, HRB 243294