After merging Den's qcow2 patch to avoid duplicated flushes, I thought I would be nice to reproduce the problem and I remembered 'qemu-img bench', which I had posted before as part of more than one RFC series, but which never made it to master somehow. So here is a rebased and cleaned up version of it, just by itself, so that it hopefully can be merged finally.
Of course, I failed to actually reproduce the problem on my laptop. Who knows, something on my system might be more intelligent about useless flushes, or maybe I just misunderstood what the problematic scenario looks like at the block level. Doesn't make the tool less useful, though, and I already did the rebasing. Kevin Wolf (5): qemu-img bench qemu-img bench: Sequential writes qemu-img bench: Make start offset configurable qemu-img bench: Implement -S (step size) qemu-img bench: Add --flush-interval qemu-img-cmds.hx | 6 ++ qemu-img.c | 289 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ qemu-img.texi | 19 ++++ 3 files changed, 314 insertions(+) -- 1.8.3.1