Skip to contentSkip to conversation

selftests/sched_ext: Add NUMA-aware scheduler test

PATCH Applied Andrea Righi 2 participants 2 messages Feb 26, 2025

Subsystems (2)
lore
Share & tools
lore

Andrea Righi

author reviewer
#0 lore raw

PATCH 1/1 selftests/sched_ext: Add NUMA-aware scheduler test

Add a selftest to validate the behavior of the NUMA-aware scheduler functionalities, including idle CPU selection within nodes, per-node DSQs and CPU to node mapping.

---
 tools/testing/selftests/sched_ext/Makefile   |   1 +
 tools/testing/selftests/sched_ext/numa.bpf.c | 100 +++++++++++++++++++
 tools/testing/selftests/sched_ext/numa.c     |  59 +++++++++++
 3 files changed, 160 insertions(+)
 create mode 100644 tools/testing/selftests/sched_ext/numa.bpf.c
 create mode 100644 tools/testing/selftests/sched_ext/numa.c
tools/testing/selftests/sched_ext/Makefile +1 -0
index 0117622246007..f4531327b8e76 100644
@@ -172,6 +172,7 @@ auto-test-targets :=			\
 	maximal				\
 	maybe_null			\
 	minimal				\
+	numa				\
 	prog_run			\
 	reload_loop			\
 	select_cpu_dfl			\
tools/testing/selftests/sched_ext/numa.bpf.c new file +100 -0

100 lines not on this page · raw message

tools/testing/selftests/sched_ext/numa.c new file +59 -0

59 lines not on this page · raw message

Signature · 1 line
2.48.1
reviewer Applied
#1 lore raw
Quoted 5 lines · Andrea Righi

Add a selftest to validate the behavior of the NUMA-aware scheduler functionalities, including idle CPU selection within nodes, per-node DSQs and CPU to node mapping.

Applied to sched_ext/for-6.15.

Thanks.

Signature · 1 line
tejun