[PATCH v7 0/2] Update AVX512 support for xbzrle and CI failure

2022-11-16 Thread ling xu
This patch updates code of avx512 support for xbzrle_encode_buffer function. We mainly modified code in xbzrle-bench.c for addressing CI failure. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin ling xu (2): Update AVX512 support for xbzrle_encode_buffer Unit test

[PATCH v7 2/2] Update bench-code for addressing CI problem

2022-11-16 Thread ling xu
Unit test code is in test-xbzrle.c, and benchmark code is in xbzrle-bench.c for performance benchmarking. we have modified xbzrle-bench.c to address CI problem. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- tests/bench/meson.build| 4 + tests/bench/xbzrle

[PATCH v7 1/2] AVX512 support for xbzrle_encode_buffer

2022-11-16 Thread ling xu
achieve 50%-70% performance improvement on benchmarking. In addition, if dirty data is randomly located in 4K page, the avx512 version can achieve almost 140% performance gain. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- meson.build| 16

[PATCH v6 2/2] Unit test code and benchmark code

2022-08-26 Thread ling xu
Unit test code is in test-xbzrle.c, and benchmark code is in xbzrle-bench.c for performance benchmarking. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- tests/bench/meson.build| 4 + tests/bench/xbzrle-bench.c | 465

[PATCH v6 1/2] Update AVX512 support for xbzrle_encode_buffer

2022-08-26 Thread ling xu
improvement on benchmarking. In addition, if dirty data is randomly located in 4K page, the avx512 version can achieve almost 140% performance gain. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- meson.build| 16 ++ meson_options.txt | 2 + migration

[PATCH v6 0/2] This patch updates AVX512 support for xbzrle

2022-08-26 Thread ling xu
This patch updates code of avx512 support for xbzrle_encode_buffer function. We modified code of algorithm and check of avx512. Besides, we provide benchmark in xbzrle-bench.c for performance comparison. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin ling xu (2

[PATCH v5 0/2] This patch updates AVX512 support for xbzrle

2022-08-18 Thread ling xu
This patch updates code of avx512 support for xbzrle_encode_buffer function. We modified runtime check of avx512 and simplified algorithm. Besides, we provide benchmark in xbzrle-bench.c for performance comparison. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin ling

[PATCH v5 2/2] Test code and benchmark code

2022-08-18 Thread ling xu
Test code in test-xbzrle.c, benchmark code in xbzrle-bench.c for performance benchmarking. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- tests/bench/meson.build| 4 + tests/bench/xbzrle-bench.c | 468 + tests/unit/test

[PATCH v5 1/2] Update AVX512 support for xbzrle_encode_buffer

2022-08-18 Thread ling xu
on benchmarking. In addition, if dirty data is randomly located in 4K page, the avx512 version can achieve almost 140% performance gain. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- meson.build| 16 ++ meson_options.txt | 2 + migration/ram.c

[PATCH v4 2/2] Update test code of AVX512 support for xbzrle_encode

2022-08-09 Thread ling xu
Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- tests/unit/test-xbzrle.c | 458 ++- 1 file changed, 457 insertions(+), 1 deletion(-) diff --git a/tests/unit/test-xbzrle.c b/tests/unit/test-xbzrle.c index ef951b6e54..2676123ce3

[PATCH v4 0/2] This patch updates AVX512 support for xbzrle

2022-08-09 Thread ling xu
updated in test-xbzrle.c. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin ling xu (2): Update AVX512 support for xbzrle_encode_buffer function Update test code of AVX512 support for xbzrle_encode meson.build | 16 ++ meson_options.txt| 2

[PATCH v4 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-09 Thread ling xu
more unit test called "test_encode_decode_random_avx512", in which dirty data are randomly located in 4K page, and this case can achieve almost 140% performance gain. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- meson.build| 16 meson_o

[PATCH v3 2/2] Test code for AVX512 support for xbzrle_encode_buffer

2022-08-08 Thread ling xu
Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- tests/unit/test-xbzrle.c | 307 --- 1 file changed, 290 insertions(+), 17 deletions(-) diff --git a/tests/unit/test-xbzrle.c b/tests/unit/test-xbzrle.c index ef951b6e54..653016826f

[PATCH v3 0/2] This patch updates runtime check of AVX512

2022-08-08 Thread ling xu
is provided in test-xbzrle.c. Previous discussion is refered below: https://www.mail-archive.com/qemu-devel@nongnu.org/msg903520.html ling xu (2): Update AVX512 support for xbzrle_encode_buffer function Test code for AVX512 support for xbzrle_encode_buffer meson.build | 16

[PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-08 Thread ling xu
addition, we provide one more unit test called "test_encode_decode_random", in which dirty data are randomly located in 4K page, and this case can achieve almost 140% performance gain. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- meson.build

[PATCH v3 2/2] Test code for AVX512 support for xbzrle_encode_buffer

2022-08-08 Thread ling xu
Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- tests/unit/test-xbzrle.c | 307 --- 1 file changed, 290 insertions(+), 17 deletions(-) diff --git a/tests/unit/test-xbzrle.c b/tests/unit/test-xbzrle.c index ef951b6e54..653016826f

[PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-08 Thread ling xu
addition, we provide one more unit test called "test_encode_decode_random", in which dirty data are randomly located in 4K page, and this case can achieve almost 140% performance gain. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- meson.build

[PATCH v3 0/2] This patch updates runtime check of AVX512

2022-08-08 Thread ling xu
is provided in test-xbzrle.c. ling xu (2): Update AVX512 support for xbzrle_encode_buffer function Test code for AVX512 support for xbzrle_encode_buffer meson.build | 16 ++ meson_options.txt| 2 + migration/ram.c | 41 ++ migration/xbzrle.c | 181

[PATCH v2 0/2] This patch adds runtime check of AVX512

2022-08-04 Thread ling xu
. The test code is provided in test-xbzrle.c. Previous discussion is refered below: https://lore.kernel.org/all/ytlshitevijwe...@redhat.com/ ling xu (2): Update AVX512 support for xbzrle_encode_buffer function Test code for AVX512 support for xbzrle_encode_buffer function meson.build

[PATCH v2 2/2] Test code for AVX512 support for xbzrle_encode_buffer function

2022-08-04 Thread ling xu
Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- tests/unit/test-xbzrle.c | 307 --- 1 file changed, 290 insertions(+), 17 deletions(-) diff --git a/tests/unit/test-xbzrle.c b/tests/unit/test-xbzrle.c index ef951b6e54..653016826f

[PATCH v2 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-04 Thread ling xu
provided by qemu. In addition, we provide one more unit test called "test_encode_decode_random", in which dirty data are randomly located in 4K page, and this case can achieve almost 140% performance gain. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- m

[PATCH 0/1] This patch provides AVX512 support for xbzrle_encode_buffer function

2022-07-21 Thread ling xu
"test_encode_decode_random" is provided in qemu/tests/u nits/test-xbzrle.c. ling xu (1): Add AVX512 support for xbzrle_encode_buffer function configure| 434 ++- migration/ram.c | 6 + migration/xbzrle.c

[PATCH 1/1] Add AVX512 support for xbzrle_encode_buffer function

2022-07-21 Thread ling xu
unit test called "test_encode_decode_random", in which dirty data are randomly located in 4K page, and this case can achieve almost 140% performance gain. Signed-off-by: ling xu Co-authored-by: Zhou Zhao Co-authored-by: Jun Jin --- configure