Skip to content

Commit

Permalink
memcached: increase the memory size
Browse files Browse the repository at this point in the history
Signed-off-by: Reto Achermann <[email protected]>
  • Loading branch information
achreto committed Oct 9, 2023
1 parent fec615c commit 126ae68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/tests/s11_rackscale_benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,8 @@ fn rackscale_memcached_benchmark(transport: RackscaleTransport) {
8192
} else {
// Memory must also be divisible by number of nodes, which could be 1, 2, 3, or 4
2048 * (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
// memory = result of this function / num_clients - shmem_size
(2048 + 2 * MEMCACHED_MEM_SIZE_MB) * (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
}
}

Expand Down Expand Up @@ -1320,7 +1321,7 @@ fn s11_rackscale_memcached_benchmark_sharded_nros() {
8192
} else {
// Memory must also be divisible by number of nodes, which could be 1, 2, 3, or 4
2048 * (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
(2048 + 2 * MEMCACHED_MEM_SIZE_MB) * (((((num_cores + 1) / 2) + 3 - 1) / 3) * 3)
}
}

Expand Down

0 comments on commit 126ae68

Please sign in to comment.