Re: [Qemu-devel] [PATCH] drive-mirror: Change the amount of data base on granularity

2014-02-24 Thread Paolo Bonzini
Il 24/02/2014 14:20, Stefan Hajnoczi ha scritto: >> Now, I change the amount of data in an iteration, it base on >> granularity. We can set the granularity to 1M,so it can send >> >> 10 times read request, and then send write request. Once a write >> request is done, it will have 1M free buffer to

Re: [Qemu-devel] [PATCH] drive-mirror: Change the amount of data base on granularity

2014-02-24 Thread Stefan Hajnoczi
On Sat, Jan 18, 2014 at 08:09:43AM +, Chentao (Boby) wrote: Please CC Kevin Wolf who co-maintains the QEMU block layer with me. Use scripts/get_maintainer.pl -f block/mirror.c to find the list of maintainers to CC. > Before, one iteration send the amount of data is continuous dirty block,

[Qemu-devel] [PATCH] drive-mirror: Change the amount of data base on granularity

2014-01-18 Thread Chentao (Boby)
Before, one iteration send the amount of data is continuous dirty block, maximum is mirror buffer size(default is 10M). This way has a low write/read performance. If image type is raw, first loop, all the data is dirty. One iteration, read 10M data and then write 10M data to target image, so re