aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2023-04-21 06:54:53 -0700
committerChris Mason <clm@fb.com>2023-04-21 06:54:53 -0700
commit5d6ed2d36c3abd4d59bef658577eb5c94e59be12 (patch)
tree80b32f51ecdaad8562582214ceb208a92b7c4599
parent28d26cd291a5f58944b28011d86b2e92e5572a78 (diff)
downloadschbench-5d6ed2d36c3abd4d59bef658577eb5c94e59be12.tar.gz
schbench: default to no warmup zeroing
The memset to zero after warmup is racey, and especially for shorter runtimes leads to strange stats. Disable it by default. Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r--schbench.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/schbench.c b/schbench.c
index f51957f..76cecc3 100644
--- a/schbench.c
+++ b/schbench.c
@@ -41,7 +41,7 @@ static int worker_threads = 0;
/* -r seconds */
static int runtime = 30;
/* -w seconds */
-static int warmuptime = 5;
+static int warmuptime = 0;
/* -i seconds */
static int intervaltime = 10;
/* -z seconds */
@@ -139,7 +139,7 @@ static void print_usage(void)
"\t-A (--auto-rps): grow RPS until cpu utilization hits target (def: none)\n"
"\t-p (--pipe): transfer size bytes to simulate a pipe test (def: 0)\n"
"\t-R (--rps): requests per second mode (count, def: 0)\n"
- "\t-w (--warmuptime): how long to warmup before resettings stats (seconds, def: 5)\n"
+ "\t-w (--warmuptime): how long to warmup before resetting stats (seconds, def: 0)\n"
"\t-i (--intervaltime): interval for printing latencies (seconds, def: 10)\n"
"\t-z (--zerotime): interval for zeroing latencies (seconds, def: never)\n"
);