All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xiao Guangrong <guangrong.xiao@gmail.com>
To: Eric Blake <eblake@redhat.com>,
	pbonzini@redhat.com, mst@redhat.com, mtosatti@redhat.com
Cc: kvm@vger.kernel.org, Xiao Guangrong <xiaoguangrong@tencent.com>,
	qemu-devel@nongnu.org, peterx@redhat.com, dgilbert@redhat.com,
	wei.w.wang@intel.com, jiang.biao2@zte.com.cn
Subject: Re: [PATCH v2 1/8] migration: do not wait for free thread
Date: Tue, 24 Jul 2018 15:40:18 +0800	[thread overview]
Message-ID: <6a4d48c6-edae-36bf-e8e8-853ed02ee805@gmail.com> (raw)
In-Reply-To: <2ad95481-76bd-22ec-4d79-aa39c950db56@redhat.com>



On 07/24/2018 02:36 AM, Eric Blake wrote:
> On 07/19/2018 07:15 AM, guangrong.xiao@gmail.com wrote:
>> From: Xiao Guangrong <xiaoguangrong@tencent.com>
>>
>> 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 wants the old behavior
>>
>> Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
>> ---
>>   hmp.c                 |  8 ++++++++
>>   migration/migration.c | 21 +++++++++++++++++++++
>>   migration/migration.h |  1 +
>>   migration/ram.c       | 45 ++++++++++++++++++++++++++-------------------
>>   qapi/migration.json   | 23 ++++++++++++++++++-----
>>   5 files changed, 74 insertions(+), 24 deletions(-)
>>
> 
>> +++ b/qapi/migration.json
>> @@ -462,6 +462,11 @@
>>   # @compress-threads: Set compression thread count to be used in live migration,
>>   #          the compression thread count is an integer between 1 and 255.
>>   #
>> +# @compress-wait-thread: Wait if no thread is free to compress the memory page
>> +#          if it's enabled, otherwise, the page will be posted out immediately
>> +#          in the main thread without compression. It's off on default.
>> +#          (Since: 3.0)
> 
> Is this a bug fix? It's awfully late in the release cycle to be adding new features; is this something that we can live without until 3.1?
> 

It's performance improvement, i think it is not urgent. :)

WARNING: multiple messages have this Message-ID (diff)
From: Xiao Guangrong <guangrong.xiao@gmail.com>
To: Eric Blake <eblake@redhat.com>,
	pbonzini@redhat.com, mst@redhat.com, mtosatti@redhat.com
Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, dgilbert@redhat.com,
	peterx@redhat.com, wei.w.wang@intel.com, jiang.biao2@zte.com.cn,
	Xiao Guangrong <xiaoguangrong@tencent.com>
Subject: Re: [Qemu-devel] [PATCH v2 1/8] migration: do not wait for free thread
Date: Tue, 24 Jul 2018 15:40:18 +0800	[thread overview]
Message-ID: <6a4d48c6-edae-36bf-e8e8-853ed02ee805@gmail.com> (raw)
In-Reply-To: <2ad95481-76bd-22ec-4d79-aa39c950db56@redhat.com>



On 07/24/2018 02:36 AM, Eric Blake wrote:
> On 07/19/2018 07:15 AM, guangrong.xiao@gmail.com wrote:
>> From: Xiao Guangrong <xiaoguangrong@tencent.com>
>>
>> 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 wants the old behavior
>>
>> Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
>> ---
>>   hmp.c                 |  8 ++++++++
>>   migration/migration.c | 21 +++++++++++++++++++++
>>   migration/migration.h |  1 +
>>   migration/ram.c       | 45 ++++++++++++++++++++++++++-------------------
>>   qapi/migration.json   | 23 ++++++++++++++++++-----
>>   5 files changed, 74 insertions(+), 24 deletions(-)
>>
> 
>> +++ b/qapi/migration.json
>> @@ -462,6 +462,11 @@
>>   # @compress-threads: Set compression thread count to be used in live migration,
>>   #          the compression thread count is an integer between 1 and 255.
>>   #
>> +# @compress-wait-thread: Wait if no thread is free to compress the memory page
>> +#          if it's enabled, otherwise, the page will be posted out immediately
>> +#          in the main thread without compression. It's off on default.
>> +#          (Since: 3.0)
> 
> Is this a bug fix? It's awfully late in the release cycle to be adding new features; is this something that we can live without until 3.1?
> 

It's performance improvement, i think it is not urgent. :)

  reply	other threads:[~2018-07-24  7:40 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-19 12:15 [PATCH v2 0/8] migration: compression optimization guangrong.xiao
2018-07-19 12:15 ` [Qemu-devel] " guangrong.xiao
2018-07-19 12:15 ` [PATCH v2 1/8] migration: do not wait for free thread guangrong.xiao
2018-07-19 12:15   ` [Qemu-devel] " guangrong.xiao
2018-07-23  3:25   ` Peter Xu
2018-07-23  3:25     ` [Qemu-devel] " Peter Xu
2018-07-23  7:16     ` Xiao Guangrong
2018-07-23  7:16       ` [Qemu-devel] " Xiao Guangrong
2018-07-23 18:36   ` Eric Blake
2018-07-23 18:36     ` [Qemu-devel] " Eric Blake
2018-07-24  7:40     ` Xiao Guangrong [this message]
2018-07-24  7:40       ` Xiao Guangrong
2018-07-19 12:15 ` [PATCH v2 2/8] migration: fix counting normal page for compression guangrong.xiao
2018-07-19 12:15   ` [Qemu-devel] " guangrong.xiao
2018-07-23  3:33   ` Peter Xu
2018-07-23  3:33     ` [Qemu-devel] " Peter Xu
2018-07-19 12:15 ` [PATCH v2 3/8] migration: show the statistics of compression guangrong.xiao
2018-07-19 12:15   ` [Qemu-devel] " guangrong.xiao
2018-07-23  4:36   ` Peter Xu
2018-07-23  4:36     ` [Qemu-devel] " Peter Xu
2018-07-23  7:39     ` Xiao Guangrong
2018-07-23  7:39       ` [Qemu-devel] " Xiao Guangrong
2018-07-23  8:05       ` Peter Xu
2018-07-23  8:05         ` [Qemu-devel] " Peter Xu
2018-07-23  8:40         ` Xiao Guangrong
2018-07-23  8:40           ` [Qemu-devel] " Xiao Guangrong
2018-07-23  9:15           ` Peter Xu
2018-07-23  9:15             ` [Qemu-devel] " Peter Xu
2018-07-24  7:37             ` Xiao Guangrong
2018-07-24  7:37               ` [Qemu-devel] " Xiao Guangrong
2018-07-25 16:44         ` Dr. David Alan Gilbert
2018-07-25 16:44           ` [Qemu-devel] " Dr. David Alan Gilbert
2018-07-26  5:29           ` Peter Xu
2018-07-26  5:29             ` [Qemu-devel] " Peter Xu
2018-07-19 12:15 ` [PATCH v2 4/8] migration: introduce save_zero_page_to_file guangrong.xiao
2018-07-19 12:15   ` [Qemu-devel] " guangrong.xiao
2018-07-23  4:40   ` Peter Xu
2018-07-23  4:40     ` [Qemu-devel] " Peter Xu
2018-07-19 12:15 ` [PATCH v2 5/8] migration: drop the return value of do_compress_ram_page guangrong.xiao
2018-07-19 12:15   ` [Qemu-devel] " guangrong.xiao
2018-07-23  4:48   ` Peter Xu
2018-07-23  4:48     ` [Qemu-devel] " Peter Xu
2018-07-19 12:15 ` [PATCH v2 6/8] migration: move handle of zero page to the thread guangrong.xiao
2018-07-19 12:15   ` [Qemu-devel] " guangrong.xiao
2018-07-23  5:03   ` Peter Xu
2018-07-23  5:03     ` [Qemu-devel] " Peter Xu
2018-07-23  7:56     ` Xiao Guangrong
2018-07-23  7:56       ` [Qemu-devel] " Xiao Guangrong
2018-07-23  8:28       ` Peter Xu
2018-07-23  8:28         ` [Qemu-devel] " Peter Xu
2018-07-23  8:44         ` Xiao Guangrong
2018-07-23  8:44           ` [Qemu-devel] " Xiao Guangrong
2018-07-23  9:40           ` Peter Xu
2018-07-23  9:40             ` [Qemu-devel] " Peter Xu
2018-07-24  7:39             ` Xiao Guangrong
2018-07-24  7:39               ` [Qemu-devel] " Xiao Guangrong
2018-07-19 12:15 ` [PATCH v2 7/8] migration: hold the lock only if it is really needed guangrong.xiao
2018-07-19 12:15   ` [Qemu-devel] " guangrong.xiao
2018-07-23  5:36   ` Peter Xu
2018-07-23  5:36     ` [Qemu-devel] " Peter Xu
2018-07-19 12:15 ` [PATCH v2 8/8] migration: do not flush_compressed_data at the end of each iteration guangrong.xiao
2018-07-19 12:15   ` [Qemu-devel] " guangrong.xiao
2018-07-23  5:49   ` Peter Xu
2018-07-23  5:49     ` [Qemu-devel] " Peter Xu
2018-07-23  8:05     ` Xiao Guangrong
2018-07-23  8:05       ` [Qemu-devel] " Xiao Guangrong
2018-07-23  8:35       ` Peter Xu
2018-07-23  8:35         ` [Qemu-devel] " Peter Xu
2018-07-23  8:53         ` Xiao Guangrong
2018-07-23  8:53           ` [Qemu-devel] " Xiao Guangrong
2018-07-23  9:01           ` Peter Xu
2018-07-23  9:01             ` [Qemu-devel] " Peter Xu
2018-07-24  7:29             ` Xiao Guangrong
2018-07-24  7:29               ` [Qemu-devel] " Xiao Guangrong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a4d48c6-edae-36bf-e8e8-853ed02ee805@gmail.com \
    --to=guangrong.xiao@gmail.com \
    --cc=dgilbert@redhat.com \
    --cc=eblake@redhat.com \
    --cc=jiang.biao2@zte.com.cn \
    --cc=kvm@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=mtosatti@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wei.w.wang@intel.com \
    --cc=xiaoguangrong@tencent.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.