Skip to content

Commit

Permalink
some fixes after rebasing on the large-shmem branch
Browse files Browse the repository at this point in the history
Signed-off-by: Reto Achermann <[email protected]>
  • Loading branch information
achreto committed Nov 27, 2023
1 parent f7e3f71 commit 6085529
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kernel/tests/s10_benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,10 +901,10 @@ fn s10_memcached_benchmark_internal() {
} else {
(
// keep in sync with the s11_ra
32 * 1024, /* MB */
2* MEMCACHED_MEM_SIZE_MB, /* MB */
MEMCACHED_MEM_SIZE_MB,
MEMCACHED_NUM_QUERIES,
600_000,
std::cmp::max(60_000, MEMCACHED_NUM_QUERIES) as u64,
)
};

Expand Down
4 changes: 2 additions & 2 deletions kernel/tests/s11_rackscale_benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,10 @@ fn rackscale_memcached_internal_benchmark(transport: RackscaleTransport) {
}

fn rackscale_timeout_fn(num_cores: usize) -> u64 {
if is_smoke {
if cfg!(feature = "smoke") {
60_000 as u64
} else {
MEMCACHED_MEM_SIZE_MB / 10 * 1000 + MEMCACHED_NUM_QUERIES / 1000
(MEMCACHED_MEM_SIZE_MB / 10 * 1000 + MEMCACHED_NUM_QUERIES) as u64
}
}

Expand Down
4 changes: 2 additions & 2 deletions kernel/testutils/src/rackscale_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -882,13 +882,13 @@ impl<T: Clone + Send + 'static> RackscaleBench<T> {
if is_baseline {
test_run.client_timeout = (self.baseline_timeout_fn)(total_cores);
// Total client memory in test is: (mem_based_on_cores) + shmem_size * num_clients
test_run.memory = (self.mem_fn)(total_cores, is_smoke)
test_run.memory = (self.mem_fn)(total_cores, cores_per_client, is_smoke)
+ test_run.shmem_size * test_run.num_clients;

test_run.run_baseline();
} else {
test_run.client_timeout = (self.rackscale_timeout_fn)(total_cores);
test_run.memory = (self.mem_fn)(total_cores, is_smoke) / test_run.num_clients;
test_run.memory = (self.mem_fn)(total_cores, cores_per_client, is_smoke) / test_run.num_clients;

test_run.run_rackscale();
}
Expand Down

0 comments on commit 6085529

Please sign in to comment.