From: "David Hildenbrand (Arm)" <david@kernel.org>
To: "Vlastimil Babka (SUSE)" <vbabka@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Andrey Ryabinin <ryabinin.a.a@gmail.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Michal Hocko <mhocko@kernel.org>,
Roman Gushchin <roman.gushchin@linux.dev>,
Shakeel Butt <shakeel.butt@linux.dev>,
Harry Yoo <harry@kernel.org>
Cc: Alexander Potapenko <glider@google.com>,
Andrey Konovalov <andreyknvl@gmail.com>,
Dmitry Vyukov <dvyukov@google.com>,
Vincenzo Frascino <vincenzo.frascino@arm.com>,
Lorenzo Stoakes <ljs@kernel.org>,
"Liam R. Howlett" <Liam.Howlett@oracle.com>,
Mike Rapoport <rppt@kernel.org>,
Suren Baghdasaryan <surenb@google.com>,
Muchun Song <muchun.song@linux.dev>, Hao Li <hao.li@linux.dev>,
Christoph Lameter <cl@gentwo.org>,
David Rientjes <rientjes@google.com>,
Pedro Falcato <pfalcato@suse.de>, Jann Horn <jannh@google.com>,
Matthew Wilcox <willy@infradead.org>,
Petr Tesarik <ptesarik@suse.com>,
linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com,
linux-mm@kvack.org, cgroups@vger.kernel.org
Subject: Re: [PATCH] slab: remove the SLUB_DEBUG functionality and config option
Date: Wed, 1 Apr 2026 13:05:34 +0200 [thread overview]
Message-ID: <d5cdcb88-c7ca-4a29-9b8e-3abb7c37726c@kernel.org> (raw)
In-Reply-To: <20260401-b4-are-you-serious-v1-1-dcacda70647d@kernel.org>
On 4/1/26 12:59, Vlastimil Babka (SUSE) wrote:
> The boot-time enabled per-cache debugging has served us well in the
> past, but it's time for it to go, for the following reasons.
>
> - It's a debugging feature. However, thanks to the advent of LLM-based
> reviews, we are not adding bugs to the kernel anymore, so it's
> unnecessary now.
Right, and probably LLM review would find many of bugs in the existing
SLUB_DEBUG code.
>
> - KASAN is more powerful anyway for the classes of bugs that SLUB_DEBUG
> can catch. But I suspect KASAN is likely to be removed soon too, see
> above.
Of course.
>
> - SLAB never had no such dynamic debugging functionality. With the
> introduction of sheaves percpu caching, we have turned SLUB back into
> SLAB partially, so this just follows that direction.
>
> - It's removing ~2500 lines of code and I want to keep my overal
> diffstats negative. This adds a nice margin.
Personal stats clearly matter more than anything else.
>
> Since the slub kunit test depends on SLUB_DEBUG, remove it too. It's not
> a big loss, see the first point above.
>
> Singed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
> ---
> Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
> ---
> lib/Kconfig.debug | 12 -
> lib/Kconfig.kasan | 2 -
> lib/tests/Makefile | 1 -
> lib/tests/slub_kunit.c | 329 --------
> mm/Kconfig.debug | 60 --
> mm/dmapool.c | 4 -
> mm/memcontrol-v1.c | 17 -
> mm/mempool.c | 105 ---
> mm/slab.h | 34 -
> mm/slub.c | 2074 +-----------------------------------------------
slab.h vs. slub.c is annoying.
Can you just rename that to sheaf.c / sheaf.h now while at it?
--
Cheers,
David
next prev parent reply other threads:[~2026-04-01 11:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-01 10:59 [PATCH] slab: remove the SLUB_DEBUG functionality and config option Vlastimil Babka (SUSE)
2026-04-01 11:05 ` David Hildenbrand (Arm) [this message]
2026-04-01 11:19 ` Lorenzo Stoakes (Oracle)
2026-04-01 11:08 ` Pedro Falcato
2026-04-01 11:15 ` Lorenzo Stoakes (Oracle)
2026-04-01 11:53 ` Harry Yoo (Oracle)
2026-04-01 16:44 ` Andrew Morton
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=d5cdcb88-c7ca-4a29-9b8e-3abb7c37726c@kernel.org \
--to=david@kernel.org \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=andreyknvl@gmail.com \
--cc=cgroups@vger.kernel.org \
--cc=cl@gentwo.org \
--cc=dvyukov@google.com \
--cc=glider@google.com \
--cc=hannes@cmpxchg.org \
--cc=hao.li@linux.dev \
--cc=harry@kernel.org \
--cc=jannh@google.com \
--cc=kasan-dev@googlegroups.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mhocko@kernel.org \
--cc=muchun.song@linux.dev \
--cc=pfalcato@suse.de \
--cc=ptesarik@suse.com \
--cc=rientjes@google.com \
--cc=roman.gushchin@linux.dev \
--cc=rppt@kernel.org \
--cc=ryabinin.a.a@gmail.com \
--cc=shakeel.butt@linux.dev \
--cc=surenb@google.com \
--cc=vbabka@kernel.org \
--cc=vincenzo.frascino@arm.com \
--cc=willy@infradead.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