From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1HEZ-0007TY-Fx for qemu-devel@nongnu.org; Mon, 22 Jul 2013 10:37:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1HEQ-0004q8-VV for qemu-devel@nongnu.org; Mon, 22 Jul 2013 10:37:07 -0400 Received: from nodalink.pck.nerim.net ([62.212.105.220]:46802 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1HEQ-0004po-Lg for qemu-devel@nongnu.org; Mon, 22 Jul 2013 10:36:58 -0400 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Mon, 22 Jul 2013 16:38:38 +0200 Message-Id: <1374503922-27965-1-git-send-email-benoit@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH for-1.6 0/4] Leaky bucket throttling and features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@redhat.com The first patch fixes the throttling which was broken by a previous commi= t. The next patch replace the existing throttling algorithm by the well desc= ribed 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 iop= s via iops_sector_count to avoid vm users cheating on the iops limit. Beno=C3=AEt 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(-) --=20 1.7.10.4