Re: [Qemu-devel] [PATCH v2 1/8] migration: do not wait for free thread

2018-07-24 Thread Xiao Guangrong
On 07/24/2018 02:36 AM, Eric Blake wrote: On 07/19/2018 07:15 AM, guangrong.x...@gmail.com wrote: From: Xiao Guangrong Instead of putting the main thread to sleep state to wait for free compression thread, we can directly post it out as normal page that reduces the latency and uses CPUs mor

Re: [Qemu-devel] [PATCH v2 1/8] migration: do not wait for free thread

2018-07-23 Thread Eric Blake
On 07/19/2018 07:15 AM, guangrong.x...@gmail.com wrote: From: Xiao Guangrong Instead of putting the main thread to sleep state to wait for free compression thread, we can directly post it out as normal page that reduces the latency and uses CPUs more efficiently A parameter, compress-wait-thre

Re: [Qemu-devel] [PATCH v2 1/8] migration: do not wait for free thread

2018-07-23 Thread Xiao Guangrong
On 07/23/2018 11:25 AM, Peter Xu wrote: On Thu, Jul 19, 2018 at 08:15:13PM +0800, guangrong.x...@gmail.com wrote: @@ -3113,6 +3132,8 @@ static Property migration_properties[] = { DEFINE_PROP_UINT8("x-compress-threads", MigrationState, parameters.compress_threads,

Re: [Qemu-devel] [PATCH v2 1/8] migration: do not wait for free thread

2018-07-22 Thread Peter Xu
On Thu, Jul 19, 2018 at 08:15:13PM +0800, guangrong.x...@gmail.com wrote: > @@ -3113,6 +3132,8 @@ static Property migration_properties[] = { > DEFINE_PROP_UINT8("x-compress-threads", MigrationState, >parameters.compress_threads, >DEFAULT_MIGRATE_

[Qemu-devel] [PATCH v2 1/8] migration: do not wait for free thread

2018-07-19 Thread guangrong . xiao
From: Xiao Guangrong Instead of putting the main thread to sleep state to wait for free compression thread, we can directly post it out as normal page that reduces the latency and uses CPUs more efficiently A parameter, compress-wait-thread, is introduced, it can be enabled if the user really wa