From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YakdD-0001jb-8Y for qemu-devel@nongnu.org; Wed, 25 Mar 2015 08:42:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yakd8-00045T-Tb for qemu-devel@nongnu.org; Wed, 25 Mar 2015 08:41:59 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:38486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yakd8-00044l-ER for qemu-devel@nongnu.org; Wed, 25 Mar 2015 08:41:54 -0400 Received: by wibgn9 with SMTP id gn9so36788876wib.1 for ; Wed, 25 Mar 2015 05:41:53 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5512AD0C.5010909@redhat.com> Date: Wed, 25 Mar 2015 13:41:48 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20150212084435.GD32554@ad.nay.redhat.com> <54DC7376.9060300@cn.fujitsu.com> <20150212094432.GA21253@ad.nay.redhat.com> <54DC7C39.40101@cn.fujitsu.com> <20150212102622.GA24218@ad.nay.redhat.com> <54F5685F.1040207@cn.fujitsu.com> <20150303075947.GA29800@ad.nay.redhat.com> <54FFE438.1020503@cn.fujitsu.com> <20150311064952.GG1437@ad.nay.redhat.com> <5502A76A.8070909@cn.fujitsu.com> <20150313090556.GD3527@ad.nay.redhat.com> <550675E2.90308@cn.fujitsu.com> In-Reply-To: <550675E2.90308@cn.fujitsu.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 01/14] docs: block replication's description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang , Fam Zheng Cc: Kevin Wolf , Lai Jiangshan , Jiang Yunhong , Dong Eddie , qemu devel , "Dr. David Alan Gilbert" , Gonglei , Stefan Hajnoczi , Yang Hongyang , jsnow@redhat.com, zhanghailiang On 16/03/2015 07:19, Wen Congyang wrote: > On 03/13/2015 05:05 PM, Fam Zheng wrote: >> On Fri, 03/13 17:01, Wen Congyang wrote: >>> On 03/11/2015 02:49 PM, Fam Zheng wrote: >>>> On Wed, 03/11 14:44, Wen Congyang wrote: >>>>> On 03/03/2015 03:59 PM, Fam Zheng wrote: >>>>>> On Tue, 03/03 15:53, Wen Congyang wrote: >>>>>>> I test qcow2_make_empty()'s performance. The result shows that it may >>>>>>> take about 100ms(normal sata disk). It is not acceptable for COLO. So >>>>>>> I think disk buff is necessary(just use it to replace qcow2). >>>>>> >>>>>> Why not tmpfs or ramdisk? >>>>> >>>>> Another problem: >>>>> After failover, secondary write request will be written in (active disk)? >>>>> It is better to write request to (nbd target). Is there any feature can >>>>> be reused to implement it? >>>> >>>> You can use block commit or stream to move the data. >>> >>> Can the job stream move the data? I don't find the write ops in block/stream.c. >> >> It is bdrv_co_copy_on_readv that moves data. > > Does the job stream move the data from base to top? Yes. block-commit goes in the other direction. Paolo