All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Some questions and an idea on SLUB/SLAB
@ 2021-10-09  0:19 Hyeonggon Yoo
  2021-10-09  0:33 ` Matthew Wilcox
  2021-10-11  7:13 ` [RFC] Some questions and an idea on SLUB/SLAB Christoph Lameter
  0 siblings, 2 replies; 7+ messages in thread
From: Hyeonggon Yoo @ 2021-10-09  0:19 UTC (permalink / raw)
  To: linux-mm
  Cc: linux-kernel, Christoph Lameter, Pekka Enberg, David Rientjes,
	Joonsoo Kim, Andrew Morton, Vlastimil Babka

Questions:

 - Is there a reason that SLUB does not implement cache coloring?
   it will help utilizing hardware cache. Especially in block layer,
   they are literally *squeezing* its performance now.
 
 - In SLAB, do we really need to flush queues every few seconds? 
   (per cpu queue and shared queue). Flushing alien caches makes
   sense, but flushing queues seems reducing it's fastpath.
   But yeah, we need to reclaim memory. can we just defer this?

Idea:

  - I don't like SLAB's per-node cache coloring, because L1 cache
    isn't shared between cpus. For now, cpus in same node are sharing
    its colour_next - but we can do better.

    what about splitting some per-cpu variables into kmem_cache_cpu
    like SLUB? I think cpu_cache, colour (and colour_next),
    alloc{hit,miss}, and free{hit,miss} can be per-cpu variables.

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

end of thread, other threads:[~2021-10-13  3:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-09  0:19 [RFC] Some questions and an idea on SLUB/SLAB Hyeonggon Yoo
2021-10-09  0:33 ` Matthew Wilcox
2021-10-09  0:40   ` Hyeonggon Yoo
2021-10-09  2:02   ` Hyeonggon Yoo
2021-10-09 11:45   ` Almost no difference Hyeonggon Yoo
2021-10-11  7:13 ` [RFC] Some questions and an idea on SLUB/SLAB Christoph Lameter
2021-10-13  3:44   ` Hyeonggon Yoo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.