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

Commit 1455f41

Browse files
committed
tests: increase the core count for internal memcached benchmark
Signed-off-by: Reto Achermann <achreto@gmail.com>
1 parent 7bce351 commit 1455f41

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

kernel/tests/s10_benchmarks.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,8 @@ fn s10_leveldb_benchmark() {
876876
fn s10_memcached_benchmark_internal() {
877877
setup_network(1);
878878

879+
let is_smoke = cfg!(feature = "smoke");
880+
879881
let machine = Machine::determine();
880882
let build = BuildArgs::default()
881883
.module("rkapps")
@@ -889,7 +891,7 @@ fn s10_memcached_benchmark_internal() {
889891
// Throw out everything above 28 since we have some non-deterministic
890892
// bug on larger machines that leads to threads calling sched_yield and
891893
// no readrandom is performed...
892-
.filter(|&t| t <= 28)
894+
.filter(|&t| if is_smoke { t <= 10 } else { t <= 128 })
893895
.collect();
894896

895897
// memcached arguments // currently not there.
@@ -914,7 +916,7 @@ fn s10_memcached_benchmark_internal() {
914916
println!();
915917

916918
for thread in threads.iter() {
917-
println!("Running memcached internal benchmark with {thread} threads, {queries} GETs and {memsize}MB memory. ");
919+
println!("\n\nRunning memcached internal benchmark with {thread} threads, {queries} GETs and {memsize}MB memory. ");
918920

919921
let kernel_cmdline = format!(
920922
r#"init=memcachedbench.bin initargs={} appcmd='--x-benchmark-mem={} --x-benchmark-queries={}'"#,

0 commit comments

Comments
 (0)