Received: from eggs.gnu.org ([2001:4830:134:3::10]:45244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh1B7-0002RB-Rx for qemu-devel@nongnu.org; Thu, 14 Nov 2013 12:58:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vh1Az-00077Z-6d for qemu-devel@nongnu.org; Thu, 14 Nov 2013 12:58:05 -0500 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_/O30+2EtTFRC8lRYSthPCg)" From: Yaodong Yang Date: Thu, 14 Nov 2013 17:57:55 +0000 (GMT) Message-id: <300f0575-b31a-43f3-824d-7ddf2fbd3aca@me.com> Subject: [Qemu-devel] migration speed setting. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-discuss@nongnu.org, qemu-devel@nongnu.org Cc: Yaodong Yang --Boundary_(ID_/O30+2EtTFRC8lRYSthPCg) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: quoted-printable Hi everyone,=0A=0AI know that inside the qemu monitor, we can set the max = migration speed through " set_migration_speed 32 ". This '32' means 32MB.=0A= =0AMy confusion is about the meaning of this 32MB. I checked the code and = find that this '32MB' is the buffer size insde QemuFile, which include all= the data submitted and read done(not transferred). If the buffer is full,= the migration thread cannot send more requests to the underlying virtual = disk. When there is some space inside this buffer, the migration thread ca= n continue to send requests to the virtual disk.=0A=0AHowever, there is an= other parameter list below:=0A=0A/* Amount of time to allocate to each "ch= unk" of bandwidth-throttled=0A=A0* data. */=0A#define BUFFER_DELAY =A0 =A0= 100=0A#define XFER_LIMIT_RATIO (1000 / BUFFER_DELAY)=0A=0ADoes this mean = that in the above case, the real buffer size is 3.2MB? If so, this buffer = can only contain 3 chuncks.=A0=0A=0ACould someone help me?=0A=0AThanks a l= ot!=0AYaodong= --Boundary_(ID_/O30+2EtTFRC8lRYSthPCg) Content-type: multipart/related; boundary="Boundary_(ID_KdOYpi4VROfvY9TPrbztEw)"; type="text/html" --Boundary_(ID_KdOYpi4VROfvY9TPrbztEw) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: quoted-printable
Hi everyone,

I know that inside the qemu mon= itor, we can set the max migration speed through " set_migration_speed 32 = ". This '32' means 32MB.

My confusion is about th= e meaning of this 32MB. I checked the code and find that this '32MB' is th= e buffer size insde QemuFile, which include all the data submitted and rea= d done(not transferred). If the buffer is full, the migration thread canno= t send more requests to the underlying virtual disk. When there is some sp= ace inside this buffer, the migration thread can continue to send requests= to the virtual disk.

However, there is another p= arameter list below:

/* Amount of time to allocate to each "chunk" of bandwi= dth-throttled
&= nbsp;* data. */
#define BUFFER_DELAY     100
#define XFER_LIMIT_RATIO (1000 / BUFFER_DELAY)

Does this mean that in the above case,= the real buffer size is 3.2MB? If so, this buffer can only contain 3 chun= cks. 

Could someone help me?

<= /div>
Thanks a lot!
Yaodong
= --Boundary_(ID_KdOYpi4VROfvY9TPrbztEw)-- --Boundary_(ID_/O30+2EtTFRC8lRYSthPCg)--