[Qemu-devel] [PATCH 0/3] Add block size histogram qapi interface

zhenwei pi posted 3 patches 6 years, 4 months ago
Test docker-clang@ubuntu passed
Test s390x failed
Test checkpatch passed
Test asan passed
Test docker-mingw@fedora passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1561020872-6214-1-git-send-email-pizhenwei@bytedance.com
Maintainers: Markus Armbruster <armbru@redhat.com>, Eric Blake <eblake@redhat.com>, Max Reitz <mreitz@redhat.com>, Kevin Wolf <kwolf@redhat.com>
There is a newer version of this series
block/accounting.c         |  55 ++++++++++++++++++------
block/qapi.c               |  26 ++++++++++-
blockdev.c                 |  56 ++++++++++++++++++++++++
include/block/accounting.h |  12 ++++--
qapi/block-core.json       | 105 ++++++++++++++++++++++++++++++++++++++++++++-
5 files changed, 235 insertions(+), 19 deletions(-)
[Qemu-devel] [PATCH 0/3] Add block size histogram qapi interface
Posted by zhenwei pi 6 years, 4 months ago
Set/Clear block size histograms through new command
x-block-size-histogram-set and show new statistics in
query-blockstats results.

This command has been tested for half year on QEMU-2.12, and we found
that 3K+ virtual machines write 25GB/s totally, the block size
histogram like following:
        0 ~ 8k: 58% ~ 62%
        8k ~ 32k: 10% ~ 12%
        32k ~ 128k: 2% ~ 3%
        128K ~ 512K: 24% ~ 26%
        512K ~ : ...

And the histogram data help us to optimise backend distributed
storage.

zhenwei pi (3):
  block/accounting: rename struct BlockLatencyHistogram
  block/accounting: introduce block size histogram
  qapi: add block size histogram interface

 block/accounting.c         |  55 ++++++++++++++++++------
 block/qapi.c               |  26 ++++++++++-
 blockdev.c                 |  56 ++++++++++++++++++++++++
 include/block/accounting.h |  12 ++++--
 qapi/block-core.json       | 105 ++++++++++++++++++++++++++++++++++++++++++++-
 5 files changed, 235 insertions(+), 19 deletions(-)

-- 
2.11.0