Received: from eggs.gnu.org ([2001:4830:134:3::10]:57282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1wze-0003Xf-By for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:21:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1wzd-0003nu-Hb for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:21:34 -0400 Date: Mon, 8 Jun 2015 14:21:19 +0100 From: Stefan Hajnoczi Message-ID: <20150608132119.GK23825@stefanha-thinkpad.redhat.com> References: <20150603134042.GA22770@igalia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KjSGHOmKKB2VUiQn" Content-Disposition: inline In-Reply-To: <20150603134042.GA22770@igalia.com> Subject: Re: [Qemu-devel] I/O accounting overhaul List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: Kevin Wolf , qemu-block@nongnu.org, Markus Armbruster , qemu-devel@nongnu.org, Max Reitz --KjSGHOmKKB2VUiQn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 03, 2015 at 03:40:42PM +0200, Alberto Garcia wrote: Please structure the patches so that each statistic or group of statistics has its own patch. That will make it easy to review and possibly merge a subset if some of the statistics prove to be controversial. > uint64_t queue_depth[BLOCK_MAX_IOTYPE]; >=20 > Average number of requests. Similar to the previous one. It would > require us to keep a count of ongoing requests as well. How is this calculated? You can keep track of the maximum queue depth easily (I think that's what fio does, for example). For anything else you need a concept of time like a load average calculation. Stefan --KjSGHOmKKB2VUiQn Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVdZbPAAoJEJykq7OBq3PIoV4H/jzazvhoQX8b2niYa4bST1/T 22P/qiYAxfmCWV9Nt7BFvGA9UJgSZYuDwHQh1CkEBoVTMtarfojL67E8MUqL3tdn VaMB+p5QifKcK8ZQB01tK5eE8RyJYgUUsGEUpV+jbLllhWIgNFV2d8nK3654oruS NL2bcnIw7LtQuTQKe81Xm4kOua0BHvvojFpWt0Lb518F0OUPm79JpP65dhn6c2m/ SGqDw1qs+yYw7xAxm3UUEvMqewpBbMeKhDFrF640Y+aMbCpB+oXpCEyQr+cRavfT 7mhgRcgW/VrnsDXSCriY4cXGkJ96eKz/NXUbTOCjnNnon3oUfaAI77Oy05yOmJg= =QX6D -----END PGP SIGNATURE----- --KjSGHOmKKB2VUiQn--