From 79f53469eb3a5b16aac54c2ca85a1247e31072a7 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Fri, 23 Jun 2017 17:40:17 -0700 Subject: [PATCH] nvme/perf: add additional latency cutoffs Signed-off-by: Jim Harris Change-Id: I1aee7aba522cc816f69709cfc95d12c50a5d0f4b Reviewed-on: https://review.gerrithub.io/367279 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker --- examples/nvme/perf/perf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/nvme/perf/perf.c b/examples/nvme/perf/perf.c index 6a48b05d60..b46f6439e0 100644 --- a/examples/nvme/perf/perf.c +++ b/examples/nvme/perf/perf.c @@ -90,11 +90,14 @@ static const double g_latency_cutoffs[] = { 0.75, 0.90, 0.95, + 0.98, 0.99, + 0.995, 0.999, 0.9999, 0.99999, 0.999999, + 0.9999999, -1, }; @@ -715,7 +718,7 @@ check_cutoff(void *ctx, uint64_t start, uint64_t end, uint64_t count, so_far_pct = (double)so_far / total; while (so_far_pct >= **cutoff && **cutoff > 0) { - printf("%8.4f%% : %9.3fus\n", **cutoff * 100, (double)end * 1000 * 1000 / g_tsc_rate); + printf("%9.5f%% : %9.3fus\n", **cutoff * 100, (double)end * 1000 * 1000 / g_tsc_rate); (*cutoff)++; } }