Received: from eggs.gnu.org ([2001:4830:134:3::10]:41456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqqp3-000258-KQ for qemu-devel@nongnu.org; Wed, 11 Dec 2013 15:56:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vqqot-0005FA-NV for qemu-devel@nongnu.org; Wed, 11 Dec 2013 15:55:57 -0500 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_RSd0sEsHAIG3Oy8XsouJtg)" From: Yaodong Yang Date: Wed, 11 Dec 2013 20:55:33 +0000 (GMT) Message-id: <6b069e96-eeb3-4a95-8a53-076daafa7cb8@me.com> Subject: [Qemu-devel] A question about virtio inside qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-discuss@nongnu.org, Stefan Hajnoczi Cc: Yaodong Yang --Boundary_(ID_RSd0sEsHAIG3Oy8XsouJtg) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: quoted-printable Hi community,=0A=0AI have a quick question about the virtio inside qemu. W= hen the user application sends to a specific virtual disk a large number o= f read requests in a very short time, where should these requests be queue= d? Inside the virtqueue? virtqueue available ring or the underlying bdrv_r= ead_aio()?=0A=0ACurrently, I run one guest vm with two virtual disks (one = for ubuntu system, the other is to serve the data access.) When the system= is running, I can check there are for instance 50 inflight requests to re= ad or write the system virtual disk. However, the inflight requests to the= data virtual disk is always one. Which is not reasonable, because inside = the vm we calculated the avery response time for each request is much larg= er than the time interval between two adjacent requests.=0A=0AMy ultimate = goal is to get the number of in-flight requests for a certain virtual disk= . Could someone give me some hints?=0A=0AThanks a lot! I appreciate your h= elp!=0AYaodong =A0= --Boundary_(ID_RSd0sEsHAIG3Oy8XsouJtg) Content-type: multipart/related; boundary="Boundary_(ID_U6OFSnz/28QHex4lBgMezg)"; type="text/html" --Boundary_(ID_U6OFSnz/28QHex4lBgMezg) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: quoted-printable
Hi community,

I have a quick question about = the virtio inside qemu. When the user application sends to a specific virt= ual disk a large number of read requests in a very short time, where shoul= d these requests be queued? Inside the virtqueue? virtqueue available ring= or the underlying bdrv_read_aio()?

Currently, I = run one guest vm with two virtual disks (one for ubuntu system, the other = is to serve the data access.) When the system is running, I can check ther= e are for instance 50 inflight requests to read or write the system virtua= l disk. However, the inflight requests to the data virtual disk is always = one. Which is not reasonable, because inside the vm we calculated the aver= y response time for each request is much larger than the time interval bet= ween two adjacent requests.

My ultimate goal is t= o get the number of in-flight requests for a certain virtual disk. Could s= omeone give me some hints?

Thanks a lot! I apprec= iate your help!
Yaodong  
= --Boundary_(ID_U6OFSnz/28QHex4lBgMezg)-- --Boundary_(ID_RSd0sEsHAIG3Oy8XsouJtg)--