From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2jgl-0005ci-Fk for qemu-devel@nongnu.org; Mon, 13 Jan 2014 10:44:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2jge-0001yP-65 for qemu-devel@nongnu.org; Mon, 13 Jan 2014 10:44:31 -0500 Received: from m12-16.163.com ([220.181.12.16]:47378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2jgc-0001wo-WD for qemu-devel@nongnu.org; Mon, 13 Jan 2014 10:44:24 -0500 Date: Mon, 13 Jan 2014 23:44:09 +0800 From: "rudyfly@163.com" Mime-Version: 1.0 Message-ID: <2014011323440947092624@163.com> Content-Type: multipart/alternative; boundary="----=_001_NextPart876732668358_=----" Subject: [Qemu-devel] Question about drive mirror List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: "rudy.zhangmin" This is a multi-part message in MIME format. ------=_001_NextPart876732668358_=---- Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: base64 SGksZXZlcnlvbmUuDQpJIHRlc3RlZCB0aGUgY2FwYWJpbGl0eSBvZiBkcml2ZSBtaXJyb3IsIEkg Zm91bmQgdGhlIElPIGlzIGxvdy4gVGhlbiBJIHJlYWQgdGhlIGNvZGUsIA0KVGhlIGNvZGUgbWly cm9yX3J1bigpIHdpbGwgY2FsbCBtaXJyb3JfaXRlcmF0aW9uKCkgdG8gcmVhZCB0aGUgc2l6ZSBv ZiBidWZmZXIgZGF0YSAgDQpmcm9tIHNvdXJjZSBzdG9yYWdlLCB3aGVuIHRoZSByZWFkIGNhbGxi YWNrICxhbmQgdGhlbiBpbiBtaXJyb3JfcmVhZF9jb21wbGV0ZSAoKSANCndyaXRlIHRoZSBkYXRh IHRvIHRoZSB0YXJnZXQgc3RvcmFnZSwgSXQgaXMgc2VyaWFsLiANCk5vdywgSSBob3BlIHdoZW4g aXQgaXMgd3JpdGluZyB0aGUgZGF0YSB0byB0YXJnZXQgc3RvcmFnZSAsd2UgY2FuIHNlbmQgdGhl IHJlcXVlc3QgDQpvZiByZWFkaW5nIGRhdGEgZnJvbSBzb3VyY2Ugc3RvcmFnZS4gQmVjYXVzZSBv ZiAgdXNpbmcgIGNvcm91dGluZSB0byBkbyBpdCAsdGhlcmUgaXMgDQpzb21lIHRyb3VibGVzIHRv IGFjaGlldmUgaXQuIHdoeSBub3QgdXNlIE11bHRpLXRocmVhZD8gDQpTb21lIG9uZSBjYW4gZ2l2 ZSBtZSBzb21lIGlkZWE/DQpUaGFua3MuDQoNCg0KDQoNCnpoYW5nIG1pbg== ------=_001_NextPart876732668358_=---- Content-Type: text/html; charset="GB2312" Content-Transfer-Encoding: quoted-printable
Hi,everyone.
I tested the capability of drive mirror, I found the IO=20 is low. Then I read the code,
The code mirror_run() will call mirror_iteration() to read the s= ize of=20 buffer data 
from source storage, when the read callback ,and then in=20 mirror_read_complete ()
write the data to the target storage, It is serial.
Now, I hope when it is writing the data to target storage ,we can sen= d the=20 request
of reading data from source storage. Because of  using=20  coroutine to do it ,there is
some troubles to achieve it. why not use Multi-thread?
Some one can give me some idea?
Thanks.
 

zhang min
------=_001_NextPart876732668358_=------