linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* MM global locks as core counts quadruple
@ 2024-06-21  0:35 David Rientjes
  2024-06-21  2:01 ` Matthew Wilcox
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: David Rientjes @ 2024-06-21  0:35 UTC (permalink / raw)
  To: Andrew Morton, Liam R. Howlett, Suren Baghdasaryan,
	Matthew Wilcox, Christoph Lameter, Paul E. McKenney, Tejun Heo,
	Johannes Weiner, Davidlohr Bueso
  Cc: Namhyung Kim, linux-mm

Hi all,

As core counts are rapidly expanding over the next four years, Namhyung 
and I were looking at global locks that we're already seeing high 
contention on even today.

Some of these are not MM specific:
 - cgroup_mutex
 - cgroup_threadgroup_rwsem
 - tasklist_lock
 - kernfs_mutex (although should now be substantially better with the 
   kernfs_locks array)

Others *are* MM specific:
 - list_lrus_mutex
 - pcpu_drain_mutex
 - shrinker_mutex (formerly shrinker_rwsem)
 - vmap_purge_lock
 - slab_mutex

This is only looking at fleet data for global static locks, not locks like 
zone->lock that get dynamically allocated.

(mmap_lock was substantially improved by per-vma locking, although does 
show up for very large vmas.)

Couple questions:

 (1) How are people quantifying these pain points, if at all, in synthetic
     testing?  Any workloads or benchmarks that are really good at doing 
     this in the lab beyond the traditional will-it-scale?  (The above is
     from production data.)

 (2) Is anybody working on any of the above global locks?  Trying to 
     surface gaps for locks that will likely become even more painful in 
     the coming years.

Thanks!


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

end of thread, other threads:[~2024-06-27  5:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-21  0:35 MM global locks as core counts quadruple David Rientjes
2024-06-21  2:01 ` Matthew Wilcox
2024-06-21  2:46 ` Yafang Shao
2024-06-21  2:54   ` Matthew Wilcox
2024-06-26 19:38     ` Karim Manaouil
2024-06-27  5:36       ` Christoph Lameter (Ampere)
2024-06-21 19:10 ` Tejun Heo
2024-06-21 21:37   ` Namhyung Kim
2024-06-23 17:59     ` Tejun Heo
2024-06-24 21:44       ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox