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

Commit dbcffdd

Browse files
committed
memcached: increase the memory size
Signed-off-by: Reto Achermann <achreto@gmail.com>
1 parent 7b6b36c commit dbcffdd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kernel/tests/s11_rackscale_benchmarks.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,8 @@ fn rackscale_memcached_benchmark(transport: RackscaleTransport) {
648648
8192
649649
} else {
650650
// Memory must also be divisible by number of nodes, which could be 1, 2, 3, or 4
651-
2048 * (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
651+
// memory = result of this function / num_clients - shmem_size
652+
(2048 + 2 * MEMCACHED_MEM_SIZE_MB) * (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
652653
}
653654
}
654655

@@ -1320,7 +1321,7 @@ fn s11_rackscale_memcached_benchmark_sharded_nros() {
13201321
8192
13211322
} else {
13221323
// Memory must also be divisible by number of nodes, which could be 1, 2, 3, or 4
1323-
2048 * (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
1324+
(2048 + 2 * MEMCACHED_MEM_SIZE_MB) * (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
13241325
}
13251326
}
13261327

0 commit comments

Comments
 (0)