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

Commit 8bb9a8f

Browse files
committed
more memory tweaks
Signed-off-by: Reto Achermann <achreto@gmail.com>
1 parent 097a5a9 commit 8bb9a8f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

kernel/tests/s11_rackscale_benchmarks.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ fn rackscale_memcached_benchmark(transport: RackscaleTransport) {
624624
test.run_dhcpd_for_baseline = true;
625625

626626
if !is_smoke {
627-
test.shmem_size = std::cmp::min(MEMCACHED_MEM_SIZE_MB * 4, testutils::helpers::SHMEM_SIZE);
627+
test.shmem_size = std::cmp::min(MEMCACHED_MEM_SIZE_MB * 8, testutils::helpers::SHMEM_SIZE);
628628
}
629629

630630
fn cmd_fn(num_cores: usize, arg: Option<MemcachedInternalConfig>) -> String {
@@ -649,7 +649,7 @@ fn rackscale_memcached_benchmark(transport: RackscaleTransport) {
649649
} else {
650650
// Memory must also be divisible by number of nodes, which could be 1, 2, 3, or 4
651651
// memory = result of this function / num_clients - shmem_size
652-
(8192 + std::cmp::min(MEMCACHED_MEM_SIZE_MB * 4, testutils::helpers::SHMEM_SIZE))
652+
(8192 + std::cmp::min(MEMCACHED_MEM_SIZE_MB * 8, testutils::helpers::SHMEM_SIZE))
653653
* (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
654654
}
655655
}
@@ -1298,7 +1298,7 @@ fn s11_rackscale_memcached_benchmark_sharded_nros() {
12981298
test.is_multi_node = true;
12991299

13001300
if !is_smoke {
1301-
test.shmem_size = std::cmp::min(MEMCACHED_MEM_SIZE_MB * 4, testutils::helpers::SHMEM_SIZE);
1301+
test.shmem_size = std::cmp::min(MEMCACHED_MEM_SIZE_MB * 8, testutils::helpers::SHMEM_SIZE);
13021302
}
13031303

13041304
fn cmd_fn(num_cores: usize, arg: Option<MemcachedShardedConfig>) -> String {
@@ -1322,7 +1322,7 @@ fn s11_rackscale_memcached_benchmark_sharded_nros() {
13221322
8192
13231323
} else {
13241324
// Memory must also be divisible by number of nodes, which could be 1, 2, 3, or 4
1325-
(8192 + std::cmp::min(MEMCACHED_MEM_SIZE_MB * 4, testutils::helpers::SHMEM_SIZE))
1325+
(8192 + std::cmp::min(MEMCACHED_MEM_SIZE_MB * 8, testutils::helpers::SHMEM_SIZE))
13261326
* (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
13271327
}
13281328
}

0 commit comments

Comments
 (0)