aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark/sysbench.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2021-02-21 12:02:23 -0800
committerLeandro Pereira <leandro@hardinfo.org>2021-02-21 12:05:43 -0800
commit903e85283e33fedb639ba93f9d152eddb3ebfa78 (patch)
tree29d09d5d745c7d684e40d94f9d8616f32ccfebe6 /modules/benchmark/sysbench.c
parentd5a97bb0e19fdac034246f7277410b7ec86231e0 (diff)
Add support for NUMA nodes
Related to #599.
Diffstat (limited to 'modules/benchmark/sysbench.c')
-rw-r--r--modules/benchmark/sysbench.c6
1 files changed, 4 insertions, 2 deletions
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,