Received: from eggs.gnu.org ([2001:4830:134:3::10]:60781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6z9t-00050i-BQ for qemu-devel@nongnu.org; Wed, 07 Aug 2013 04:31:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6z9n-0002Ig-8h for qemu-devel@nongnu.org; Wed, 07 Aug 2013 04:31:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6z9m-0002Ic-Vz for qemu-devel@nongnu.org; Wed, 07 Aug 2013 04:31:47 -0400 Date: Wed, 7 Aug 2013 10:31:38 +0200 From: Stefan Hajnoczi Message-ID: <20130807083138.GA24605@stefanha-thinkpad.redhat.com> References: <1375458782-14888-1-git-send-email-benoit@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1375458782-14888-1-git-send-email-benoit@irqsave.net> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC V3 0/2] continuous leaky bucket throttling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org On Fri, Aug 02, 2013 at 05:53:00PM +0200, Beno=EEt Canet wrote: > This patchset implement continous leaky bucket throttling. >=20 > It works mostly on the general case. > The exception is where the load is composed of both reads and writes an= d two > limits iops_rd and iops_wr are set. > The resulting iops are a little above half of the given limits. > I tried various strategies to avoid this: two timer, two throttled requ= est > queues or even a different algorithm using a priority queue. > The problem is still the same in every version of the code: reads and w= rites > operation seems entangled. >=20 > Beno=EEt Canet (2): > throttle: Add a new throttling API implementing continuus leaky > bucket. > block: Enable the new throttling code in the block layer. >=20 > block.c | 316 ++++++++------------------------ > block/qapi.c | 21 +-- > blockdev.c | 115 ++++++------ > include/block/block.h | 1 - > include/block/block_int.h | 33 +--- > include/qemu/throttle.h | 111 ++++++++++++ > util/Makefile.objs | 1 + > util/throttle.c | 436 +++++++++++++++++++++++++++++++++++++= ++++++++ > 8 files changed, 698 insertions(+), 336 deletions(-) > create mode 100644 include/qemu/throttle.h > create mode 100644 util/throttle.c I saw more discussion on IRC. Does this mean you will send another revision to address outstanding issues? Just wanted to check if you are waiting for code review or if you are still developing the next patch revision. Stefan