slab: support for compiler-assisted type-based slab cache partitioning
@melver posted a kernel patch that provides an alternative mode to RANDOM_KMALLOC_CACHES called TYPED_KMALLOC_CACHES.
The new mode leverages a Clang 22 feature called "allocation tokens". Unlike RANDOM_KMALLOC_CACHES, this mode deterministically assigns caches to allocations based on their types, and not allocation sites.
https://lore.kernel.org/all/20260331111240.153913-1-elver@google.com/
#Linux 7.0 is out:
https://lore.kernel.org/lkml/CAHk-=wj2WqpPBwpAXo8bj_Hx-NxKMRVTVMUaQis7+Vm6XLRZiw@mail.gmail.com/
For a list of new features, see:
* the LWN brief news entry – https://lwn.net/Articles/1067279/ (Screenshotted below)
* the LWN merge-window summaries – https://lwn.net/Articles/1057769/ and https://lwn.net/Articles/1058664/
* the KernelNewbies 7.0 page – https://kernelnewbies.org/Linux_7.0
And reminder: the jump from 6.19 to 7.0 does not mean anything apart from "Linus ran out of fingers and toes to count on."