Linux Fixes A Performance Regression In The Slab Code
phoronix.com·2h
Performance Tools
Preview
Report Post

LINUX KERNEL

A performance fix has been submitted to the Linux kernel for dealing with a regression in the Slab memory allocation code.

The sole patch with today’s slab pull request for Linux 6.19 and to be back-ported to Linux 6.18 LTS stable is fixing a performance regression for code involving heavy kmem_cache_destroy() usage.

The kmem_cache_destroy() calls kvfree_rcu_barrier() that ends up flushing RCU sheaves across all slab caches when a cache is destroyed. But that isn’t mnecessary with only the RCU sheaves belonging to the cache being destroy should need to be flushed. This stable fix introduces kvfree_rcu_barrier_on_…

Similar Posts

Loading similar posts...