+Vlastimil On Tue, Dec 20, 2022 at 10:48 AM Roman Gushchin <roman.gushchin@xxxxxxxxx> wrote: > > Sven Luther reported a regression in the posix message queues > performance caused by switching to the per-object tracking of > slab objects introduced by patch series ending with the > commit 10befea91b61 ("mm: memcg/slab: use a single set of kmem_caches for all > allocations"). > > To mitigate the regression cache allocated mqueue messages on a small > percpu cache instead of releasing and re-allocating them every time. > Seems fine with me but I am wondering what is stopping us to do this caching in the slab layer for all accounted allocations? Does this only make sense for specific scenarios/use-cases?