[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH V12 0/5] Continuous Leaky Bucket Throttling

From: Benoît Canet
Subject: [Qemu-devel] [PATCH V12 0/5] Continuous Leaky Bucket Throttling
Date: Mon, 2 Sep 2013 14:14:36 +0200

This patchset implement continous leaky bucket throttling.

It use two requests queue to enable to do silly unbalanced throttling like
block_set_io_throttle 0 0 0 0 6000 1

It use two timer to get the timer callbacks and the throttle.c code simple

   compute unit only when size > op_size [Fam]
   Drop Eric Reviwed by as patches have changed [Benoît]
   fix badly concatenated string [Fam]
   Add description of burst in header [Fam]
   Fix braces spacing [Fam]
   Fix qemu-options.hx bracket [Fam] 

   Reapplied Eric's reviewed by (they are precious)

   Rebased on top of Eric latest patch (merged in qemu-trivial-next)

   Apply Reviewed-By by Eric
   Rebased on top of "qmp: fix integer usage in examples" by Eric (Please apply 


   rearm timer only when it's not pending [Stefan]
   Schedule next request right after accouting it [Stefan]

Benoît Canet (5):
  throttle: Add a new throttling API implementing continuous leaky
  throttle: Add units tests
  block: Enable the new throttling code in the block layer.
  block: Add support for throttling burst max in QMP and the command
  block: Add iops_size to do the iops accounting for a given io size.

 block.c                   |  338 +++++++++----------------------
 block/qapi.c              |   50 +++--
 blockdev.c                |  207 ++++++++++++++-----
 hmp.c                     |   36 +++-
 include/block/block.h     |    1 -
 include/block/block_int.h |   32 +--
 include/qemu/throttle.h   |  110 +++++++++++
 qapi-schema.json          |   40 +++-
 qemu-options.hx           |    6 +-
 qmp-commands.hx           |   32 ++-
 tests/Makefile            |    2 +
 tests/test-throttle.c     |  481 +++++++++++++++++++++++++++++++++++++++++++++
 util/Makefile.objs        |    1 +
 util/throttle.c           |  396 +++++++++++++++++++++++++++++++++++++
 14 files changed, 1393 insertions(+), 339 deletions(-)
 create mode 100644 include/qemu/throttle.h
 create mode 100644 tests/test-throttle.c
 create mode 100644 util/throttle.c


reply via email to

[Prev in Thread] Current Thread [Next in Thread]