When the (de)compression thread count is set to 1, the current implementation is inefficient because of the data copy and thread syncronization cost, a separate single (de)compression thread is useless for performance improvement and will result in performance degradation.
If (de)compression thread count is set to 1, we skip to use the multiple threads mechanism. Liang Li (3): qemu-file: improve qemu_put_compression_data migration: optimization for one compression thread migration: optimization for one decompression thread migration/qemu-file.c | 10 +++++++++- migration/ram.c | 46 ++++++++++++++++++++++++++++++++++------------ 2 files changed, 43 insertions(+), 13 deletions(-) -- 1.9.1
