Re: [PATCH] mm, slub: better heuristic for number of cpus when calculating slab order

2021-02-10 Thread Mel Gorman
On Mon, Feb 08, 2021 at 02:41:08PM +0100, Vlastimil Babka wrote: > When creating a new kmem cache, SLUB determines how large the slab pages will > based on number of inputs, including the number of CPUs in the system. Larger > slab pages mean that more objects can be allocated/free from per-cpu

Re: [PATCH] mm, slub: better heuristic for number of cpus when calculating slab order

2021-02-08 Thread Vincent Guittot
On Mon, 8 Feb 2021 at 14:41, Vlastimil Babka wrote: > > When creating a new kmem cache, SLUB determines how large the slab pages will > based on number of inputs, including the number of CPUs in the system. Larger > slab pages mean that more objects can be allocated/free from per-cpu slabs >

[PATCH] mm, slub: better heuristic for number of cpus when calculating slab order

2021-02-08 Thread Vlastimil Babka
When creating a new kmem cache, SLUB determines how large the slab pages will based on number of inputs, including the number of CPUs in the system. Larger slab pages mean that more objects can be allocated/free from per-cpu slabs before accessing shared structures, but also potentially more