Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit 656a34f

Browse files
committed
bench: try tweak memory and threads
Signed-off-by: Reto Achermann <achreto@gmail.com>
1 parent aca24ba commit 656a34f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

kernel/tests/s11_rackscale_benchmarks.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ fn rackscale_memcached_benchmark(transport: RackscaleTransport) {
643643
} else {
644644
// Memory must also be divisible by number of nodes, which could be 1, 2, 3, or 4
645645
// 2048 * (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
646-
3 * 128 * 1024
646+
3 * 1024 // 3 * 128 * 1024
647647
}
648648
}
649649

@@ -957,7 +957,11 @@ fn s11_rackscale_memcached_benchmark_sharded_linux() {
957957
let r = csv_file.write(row.as_bytes());
958958
assert!(r.is_ok());
959959

960-
let max_threads_per_node = machine.max_cores() / machine.max_numa_nodes();
960+
let max_threads_per_node = if is_smoke {
961+
1
962+
} else {
963+
machine.max_cores() / machine.max_numa_nodes()
964+
};
961965
println!(
962966
"Nodes: {}, max_threads_per_node: {max_threads_per_node}",
963967
machine.max_numa_nodes()
@@ -1286,7 +1290,8 @@ fn s11_rackscale_memcached_benchmark_sharded_nros() {
12861290
} else {
12871291
// Memory must also be divisible by number of nodes, which could be 1, 2, 3, or 4
12881292
// 256 * 1024 //2048 * (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
1289-
3 * 128 * 1024
1293+
// 3 * 128 * 1024
1294+
3 * 1024
12901295
}
12911296
}
12921297

0 commit comments

Comments
 (0)