linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mm/slub: some minor optimization and cleanup
@ 2024-01-23  9:33 Chengming Zhou
  2024-01-23  9:33 ` [PATCH v2 1/3] mm/slub: directly load freelist from cpu partial slab in the likely case Chengming Zhou
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Chengming Zhou @ 2024-01-23  9:33 UTC (permalink / raw)
  To: Joonsoo Kim, Vlastimil Babka, David Rientjes, Roman Gushchin,
	Pekka Enberg, Christoph Lameter, Andrew Morton, Hyeonggon Yoo
  Cc: Vlastimil Babka, linux-kernel, Chengming Zhou, linux-mm,
	Christoph Lameter (Ampere)

Changes in v2:
- Add VM_BUG_ON(!freelist) after get_freelist() for cpu partial slab case,
  since it's not possible to happen for this case.
- Collect tags.
- Link to v1: https://lore.kernel.org/r/20240117-slab-misc-v1-0-fd1c49ccbe70@bytedance.com

Hi,

This series include a minor optimization of cpu partial slab fastpath,
which directly load freelist from cpu partial slab in the likely case.

It has small performance improvement in testing:
perf bench sched messaging -g 5 -t -l 100000

            mm-stable   slub-optimize
Total time      7.473    7.209

The other two patches are cleanups, which are included for convenience.

Thanks for review and comment!

Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
---
Chengming Zhou (3):
      mm/slub: directly load freelist from cpu partial slab in the likely case
      mm/slub: remove full list manipulation for non-debug slab
      mm/slub: remove unused parameter in next_freelist_entry()

 mm/slub.c | 32 ++++++++++++++------------------
 1 file changed, 14 insertions(+), 18 deletions(-)
---
base-commit: ab27740f76654ed58dd32ac0ba0031c18a6dea3b
change-id: 20240117-slab-misc-5a5f37a51257

Best regards,
-- 
Chengming Zhou <zhouchengming@bytedance.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-23 10:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-23  9:33 [PATCH v2 0/3] mm/slub: some minor optimization and cleanup Chengming Zhou
2024-01-23  9:33 ` [PATCH v2 1/3] mm/slub: directly load freelist from cpu partial slab in the likely case Chengming Zhou
2024-01-23 10:45   ` Vlastimil Babka
2024-01-23  9:33 ` [PATCH v2 2/3] mm/slub: remove full list manipulation for non-debug slab Chengming Zhou
2024-01-23  9:33 ` [PATCH v2 3/3] mm/slub: remove unused parameter in next_freelist_entry() Chengming Zhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).