From cb2715c1e9fa6fe55a911519964c02c418204de9 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Tue, 5 Jan 2021 13:18:11 +0200 Subject: [PATCH] Don't report "appending io" for prezero tests These are overwrite tests; report them as such. --- fsqual.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fsqual.cc b/fsqual.cc index 280cc9b..8b13bc0 100644 --- a/fsqual.cc +++ b/fsqual.cc @@ -94,13 +94,15 @@ void run_test(unsigned iodepth, size_t bufsize, bool pretruncate, bool prezero, auto verdict = rate < 0.1 ? "GOOD" : "BAD"; auto mode = std::string(pretruncate ? "size-unchanging" : "size-changing"); if (prezero) { - mode += ", prezero"; + mode += ", overwrite"; + } else { + mode += ", append"; } mode += ", blocksize " + std::to_string(bufsize); if (dsync) { mode += ", O_DSYNC"; } - std::cout << "context switch per appending io (mode " << mode << ", iodepth " << iodepth << "): " << rate + std::cout << "context switch per io (mode " << mode << ", iodepth " << iodepth << "): " << rate << " (" << verdict << ")\n"; auto ptr = mmap(nullptr, nr * 4096, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); auto incore = std::vector(nr); -- 2.49.0