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

Commit 6085529

Browse files
committed
some fixes after rebasing on the large-shmem branch
Signed-off-by: Reto Achermann <achreto@gmail.com>
1 parent f7e3f71 commit 6085529

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

kernel/tests/s10_benchmarks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,10 +901,10 @@ fn s10_memcached_benchmark_internal() {
901901
} else {
902902
(
903903
// keep in sync with the s11_ra
904-
32 * 1024, /* MB */
904+
2* MEMCACHED_MEM_SIZE_MB, /* MB */
905905
MEMCACHED_MEM_SIZE_MB,
906906
MEMCACHED_NUM_QUERIES,
907-
600_000,
907+
std::cmp::max(60_000, MEMCACHED_NUM_QUERIES) as u64,
908908
)
909909
};
910910

kernel/tests/s11_rackscale_benchmarks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,10 @@ fn rackscale_memcached_internal_benchmark(transport: RackscaleTransport) {
615615
}
616616

617617
fn rackscale_timeout_fn(num_cores: usize) -> u64 {
618-
if is_smoke {
618+
if cfg!(feature = "smoke") {
619619
60_000 as u64
620620
} else {
621-
MEMCACHED_MEM_SIZE_MB / 10 * 1000 + MEMCACHED_NUM_QUERIES / 1000
621+
(MEMCACHED_MEM_SIZE_MB / 10 * 1000 + MEMCACHED_NUM_QUERIES) as u64
622622
}
623623
}
624624

kernel/testutils/src/rackscale_runner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,13 +882,13 @@ impl<T: Clone + Send + 'static> RackscaleBench<T> {
882882
if is_baseline {
883883
test_run.client_timeout = (self.baseline_timeout_fn)(total_cores);
884884
// Total client memory in test is: (mem_based_on_cores) + shmem_size * num_clients
885-
test_run.memory = (self.mem_fn)(total_cores, is_smoke)
885+
test_run.memory = (self.mem_fn)(total_cores, cores_per_client, is_smoke)
886886
+ test_run.shmem_size * test_run.num_clients;
887887

888888
test_run.run_baseline();
889889
} else {
890890
test_run.client_timeout = (self.rackscale_timeout_fn)(total_cores);
891-
test_run.memory = (self.mem_fn)(total_cores, is_smoke) / test_run.num_clients;
891+
test_run.memory = (self.mem_fn)(total_cores, cores_per_client, is_smoke) / test_run.num_clients;
892892

893893
test_run.run_rackscale();
894894
}

0 commit comments

Comments
 (0)