Commit 79f53469 authored by Jim Harris's avatar Jim Harris Committed by Daniel Verkamp
Browse files

nvme/perf: add additional latency cutoffs



Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I1aee7aba522cc816f69709cfc95d12c50a5d0f4b

Reviewed-on: https://review.gerrithub.io/367279


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 65bd6422
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)++;
	}
}