From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyJTZ-0004GP-Bt for qemu-devel@nongnu.org; Fri, 29 May 2015 08:33:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyJTW-0008E2-2N for qemu-devel@nongnu.org; Fri, 29 May 2015 08:33:25 -0400 Date: Fri, 29 May 2015 13:33:18 +0100 From: Stefan Hajnoczi Message-ID: <20150529123318.GC8598@stefanha-thinkpad.redhat.com> References: <7d0ca2d3615ca3bb156d4c31aa64e6812cda7a6e.1432037840.git.berto@igalia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yLVHuoLXiP9kZBkt" Content-Disposition: inline In-Reply-To: <7d0ca2d3615ca3bb156d4c31aa64e6812cda7a6e.1432037840.git.berto@igalia.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 4/8] throttle: Add throttle group support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, Stefan Hajnoczi --yLVHuoLXiP9kZBkt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 19, 2015 at 03:24:32PM +0300, Alberto Garcia wrote: > The throttle group support use a cooperative round robin scheduling > algorithm. >=20 > The principles of the algorithm are simple: > - Each BDS of the group is used as a token in a circular way. > - The active BDS computes if a wait must be done and arms the right > timer. > - If a wait must be done the token timer will be armed so the token > will become the next active BDS. >=20 > Signed-off-by: Alberto Garcia > --- > block.c | 15 +-- > block/io.c | 75 +++----------- > block/qapi.c | 5 +- > block/throttle-groups.c | 214 ++++++++++++++++++++++++++++++++++= +++++- > blockdev.c | 38 +++++-- > hmp.c | 4 +- > include/block/block.h | 3 +- > include/block/block_int.h | 7 +- > include/block/throttle-groups.h | 4 + > qapi/block-core.json | 25 ++++- > qemu-options.hx | 1 + > qmp-commands.hx | 3 +- > 12 files changed, 309 insertions(+), 85 deletions(-) Reviewed-by: Stefan Hajnoczi --yLVHuoLXiP9kZBkt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVaFyOAAoJEJykq7OBq3PIr6YIAK7YpdKufr7vS8CQN4MxnkT3 2NHc89OLDn4+smyf9Vl+c9KAWliFX9Y9oUus1IfZYpoNC8PY/5OdkOrt+hX8Yq3D +ivOWzbGlP74lWjNAasPVa+T5QIEP+bcGpyircOuG7yXopCIxosua4g8zxaFcPHV khtYQicM2GWwdZJuERdlw05p+/CUS2Tbp2D451LgOKs70XbPoVio7sAV0U0KuZl3 CWEN0f9FLuh/lNhCexWoSNsyK2jiWiLaTo1ZIscref2qqnWKPTR80xgRqK4W1/Fb K9xLDJQn8n6vSRBeWg8kPJ4DaPVxgdcBM5cacj7bRbbxMInmQTxeb/VC6zkCA8Y= =HWkp -----END PGP SIGNATURE----- --yLVHuoLXiP9kZBkt--