Re: [Qemu-devel] [PATCH] migration/block: optimize the performance by coalescing the same write type

2017-05-08 Thread Stefan Hajnoczi
On Mon, Apr 24, 2017 at 09:55:40PM +0800, jemmy858...@gmail.com wrote: > From: Lidong Chen > > This patch optimizes the performance by coalescing the same write type. > When the zero/non-zero state changes, perform the write for the accumulated > cluster count. > >

Re: [Qemu-devel] [PATCH] migration/block: optimize the performance by coalescing the same write type

2017-05-08 Thread 858585 jemmy
Hi Stefan: Could you help me review this patch? Thanks a lot. On Mon, Apr 24, 2017 at 10:03 PM, 858585 jemmy wrote: > the reason of MIN_CLUSTER_SIZE is 8192 is base on the performance > test result. the performance is only reduce obviously when cluster_size is >

Re: [Qemu-devel] [PATCH] migration/block: optimize the performance by coalescing the same write type

2017-04-24 Thread 858585 jemmy
the reason of MIN_CLUSTER_SIZE is 8192 is base on the performance test result. the performance is only reduce obviously when cluster_size is less than 8192. I write this code, run in guest os. to create the worst condition. #include #include #include int main() { char *zero; char

[Qemu-devel] [PATCH] migration/block: optimize the performance by coalescing the same write type

2017-04-24 Thread jemmy858585
From: Lidong Chen This patch optimizes the performance by coalescing the same write type. When the zero/non-zero state changes, perform the write for the accumulated cluster count. Signed-off-by: Lidong Chen --- Thanks Fam Zheng and Stefan's