Received: from eggs.gnu.org ([2001:4830:134:3::10]:55096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2ePJ-0003DZ-0j for qemu-devel@nongnu.org; Wed, 10 Jun 2015 07:42:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2eP6-0003v5-OW for qemu-devel@nongnu.org; Wed, 10 Jun 2015 07:42:56 -0400 From: Alberto Garcia In-Reply-To: <20150608132119.GK23825@stefanha-thinkpad.redhat.com> References: <20150603134042.GA22770@igalia.com> <20150608132119.GK23825@stefanha-thinkpad.redhat.com> Date: Wed, 10 Jun 2015 13:41:53 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] I/O accounting overhaul List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , qemu-block@nongnu.org, Markus Armbruster , qemu-devel@nongnu.org, Max Reitz On Mon 08 Jun 2015 03:21:19 PM CEST, Stefan Hajnoczi = wrote: > Please structure the patches so that each statistic or group of > statistics has its own patch. Yes, that's the plan. >> 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. We already need a way to compute the average latency for I/O operations in a certain period of time, so we can use that. Beno=C3=AEt had already written some code for that purpose and that's what I'm using as the basis for my work. https://lists.nongnu.org/archive/html/qemu-devel/2014-09/msg04844.html Berto