Skip to content

Leaky bucket throttling and features

Benoît Canet qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: Repair the throttling code.block.c include/block/coroutine.h qemu-coroutine-lock.c+23 -40 replies
2/4block: Modify the throttling code to implement the leaky bucket algorithm.block.c blockdev.c include/block/block_int.h+299 -1970 replies
3/4block: Add support for throttling burst threshold in QMP and the command line.block/qapi.c blockdev.c hmp.c +3 more+205 -220 replies
4/4block: Add iops_sector_count to do the iops accounting for a given io size.block.c block/qapi.c blockdev.c +5 more+54 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] Leaky bucket throttling and features

The first patch fixes the throttling which was broken by a previous commit.

The next patch replace the existing throttling algorithm by the well described leaky bucket algorithm.

Third patch implement bursting by adding *_threshold parameters to qmp_block_set_io_throttle.

The last one allow to define the max size of an io when throttling by iops via iops_sector_count.

Benoît Canet (4):
block: Repair the throttling code.
block: Modify the throttling code to implement the leaky bucket
algorithm.
block: Add support for throttling burst threshold in QMP and the
command line.
block: Add iops_sector_count to do the iops accounting for a given io
size.

 block.c                   |  424 +++++++++++++++++++++++++--------------------
 block/qapi.c              |   28 +++
 blockdev.c                |  174 +++++++++++++++++--
 hmp.c                     |   36 +++-
 include/block/block_int.h |   16 +-
 include/block/coroutine.h |    5 +
 qapi-schema.json          |   40 ++++-
 qemu-coroutine-lock.c     |   14 ++
 qemu-options.hx           |    2 +-
 qmp-commands.hx           |   34 +++-
 10 files changed, 561 insertions(+), 212 deletions(-)
Signature · 1 line
1.7.10.4