Re: [Qemu-devel] [PATCH 3/3] mirror: Speed up bitmap initial scanning

2015-07-14 Thread Stefan Hajnoczi
On Thu, Jul 09, 2015 at 11:47:58AM +0800, Fam Zheng wrote: > Limiting to sectors_per_chunk for each bdrv_is_allocated_above is slow, > because the underlying protocol driver would issue much more queries > than necessary. We should coalesce the query. > > Signed-off-by: Fam Zheng > --- > block/m

Re: [Qemu-devel] [PATCH 3/3] mirror: Speed up bitmap initial scanning

2015-07-09 Thread Stefan Hajnoczi
On Thu, Jul 09, 2015 at 11:47:58AM +0800, Fam Zheng wrote: > Limiting to sectors_per_chunk for each bdrv_is_allocated_above is slow, > because the underlying protocol driver would issue much more queries > than necessary. We should coalesce the query. > > Signed-off-by: Fam Zheng > --- > block/m

[Qemu-devel] [PATCH 3/3] mirror: Speed up bitmap initial scanning

2015-07-08 Thread Fam Zheng
Limiting to sectors_per_chunk for each bdrv_is_allocated_above is slow, because the underlying protocol driver would issue much more queries than necessary. We should coalesce the query. Signed-off-by: Fam Zheng --- block/mirror.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletion