mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH v3 0/3] sched: Skip queued wakeups only when L2 is shared
@ 2023-08-22 11:31 Mathieu Desnoyers
  2023-08-22 11:31 ` [RFC PATCH v3 1/3] sched: Rename cpus_share_cache to cpus_share_llc Mathieu Desnoyers
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Mathieu Desnoyers @ 2023-08-22 11:31 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: linux-kernel, Mathieu Desnoyers, Ingo Molnar, Valentin Schneider,
	Steven Rostedt, Ben Segall, Mel Gorman,
	Daniel Bristot de Oliveira, Vincent Guittot, Juri Lelli,
	Swapnil Sapkal, Aaron Lu, Julien Desfossez, x86

This series improves performance of scheduler wakeups on large systems
by skipping queued wakeups only when CPUs share their L2 cache, rather
than when they share their LLC.

The speedup mainly reproduces on workloads which have at least *some*
idle time (because it significantly increases the number of migrations,
and thus remote wakeups), *and* it needs to have a sufficient load to
cause contention on the runqueue locks.

Feedback is welcome,

Thanks,

Mathieu

Mathieu Desnoyers (3):
  sched: Rename cpus_share_cache to cpus_share_llc
  sched: Introduce cpus_share_l2c (v3)
  sched: ttwu_queue_cond: skip queued wakeups across different l2 caches

Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ben Segall <bsegall@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Daniel Bristot de Oliveira <bristot@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Swapnil Sapkal <Swapnil.Sapkal@amd.com>
Cc: Aaron Lu <aaron.lu@intel.com>
Cc: Julien Desfossez <jdesfossez@digitalocean.com>
Cc: x86@kernel.org

 block/blk-mq.c                 |  2 +-
 include/linux/sched/topology.h | 10 ++++++++--
 kernel/sched/core.c            | 14 +++++++++++---
 kernel/sched/fair.c            |  8 ++++----
 kernel/sched/sched.h           |  2 ++
 kernel/sched/topology.c        | 32 +++++++++++++++++++++++++++++---
 6 files changed, 55 insertions(+), 13 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2023-09-06  6:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-22 11:31 [RFC PATCH v3 0/3] sched: Skip queued wakeups only when L2 is shared Mathieu Desnoyers
2023-08-22 11:31 ` [RFC PATCH v3 1/3] sched: Rename cpus_share_cache to cpus_share_llc Mathieu Desnoyers
2023-08-22 11:31 ` [RFC PATCH v3 2/3] sched: Introduce cpus_share_l2c Mathieu Desnoyers
2023-08-23 15:26   ` Mathieu Desnoyers
2023-08-23 18:52     ` Mathieu Desnoyers
2023-08-24  7:52       ` Aaron Lu
2023-08-24 14:40         ` Mathieu Desnoyers
2023-08-25  6:49           ` Aaron Lu
2023-08-25 13:51             ` Mathieu Desnoyers
2023-08-28 11:19               ` Aaron Lu
2023-09-01 13:45                 ` Aaron Lu
2023-09-05  7:21                   ` Aaron Lu
2023-09-05 12:46                     ` Mathieu Desnoyers
2023-09-06  6:38                       ` Aaron Lu
2023-08-22 11:31 ` [RFC PATCH v3 3/3] sched: ttwu_queue_cond: skip queued wakeups across different l2 caches Mathieu Desnoyers
2023-08-25 10:11 ` [RFC PATCH v3 0/3] sched: Skip queued wakeups only when L2 is shared Swapnil Sapkal
2023-08-25 14:03   ` Mathieu Desnoyers

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

all inboxes | Powered by JetHome®