From 903e85283e33fedb639ba93f9d152eddb3ebfa78 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sun, 21 Feb 2021 12:02:23 -0800 Subject: Add support for NUMA nodes Related to #599. --- modules/benchmark/sysbench.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/benchmark/sysbench.c') diff --git a/modules/benchmark/sysbench.c b/modules/benchmark/sysbench.c index 9b8a4a38..75008804 100644 --- a/modules/benchmark/sysbench.c +++ b/modules/benchmark/sysbench.c @@ -230,8 +230,10 @@ void benchmark_sbcpu_single(void) { } void benchmark_sbcpu_all(void) { - int cpu_procs, cpu_cores, cpu_threads; - cpu_procs_cores_threads(&cpu_procs, &cpu_cores, &cpu_threads); + int cpu_procs, cpu_cores, cpu_threads, cpu_nodes; + + cpu_procs_cores_threads_nodes(&cpu_procs, &cpu_cores, &cpu_threads, &cpu_nodes); + struct sysbench_ctx ctx = { .test = "cpu", .threads = cpu_threads, -- cgit v1.2.3