From: Juan Quintela <quintela@redhat.com>
To: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: qemu-devel@nongnu.org, lvivier@redhat.com, peterx@redhat.com,
"Daniel P. Berrange" <berrange@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 09/10] migration: Make xbzrle_cache_size a migration parameter
Date: Wed, 18 Oct 2017 10:50:17 +0200 [thread overview]
Message-ID: <878tg8on5i.fsf@secure.laptop> (raw)
In-Reply-To: <20171012120432.GC2343@work-vm> (David Alan Gilbert's message of "Thu, 12 Oct 2017 13:04:33 +0100")
"Dr. David Alan Gilbert" <dgilbert@redhat.com> wrote:
> * Juan Quintela (quintela@redhat.com) wrote:
>> Right now it is a variable in MigrationState instead of a
>> MigrationParameter. The change allows to set it as the rest of the
>> Migration parameters, from the command line, with
>> query_migration_paramters, set_migrate_parameters, etc.
>>
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> static void migrate_params_apply(MigrateSetParameters *params)
>> @@ -939,6 +954,10 @@ static void migrate_params_apply(MigrateSetParameters *params)
>> if (params->has_x_multifd_page_count) {
>> s->parameters.x_multifd_page_count = params->x_multifd_page_count;
>> }
>> + if (params->has_xbzrle_cache_size) {
>> + s->parameters.xbzrle_cache_size = params->xbzrle_cache_size;
>> + xbzrle_cache_resize(params->xbzrle_cache_size, NULL);
>
> Not having the errp is a pain; you've just moved all the error
> checking into xbzrle_cache_resize, so I think we really need an error
> pointer and to do something with it (even if it's just a local report).
ok.
>> @@ -474,6 +474,10 @@
>> # @x-multifd-page-count: Number of pages sent together to a thread
>> # The default value is 16 (since 2.11)
>> #
>> +# @xbzrle-cache-size: cache size to be used by XBZRLE migration. It
>> +# needs to be a multiple of the target page size
>
> and power of 2
>
>> +# (Since 2.11)
>> +#
>> # Since: 2.4
>> ##
>> { 'enum': 'MigrationParameter',
>> @@ -481,7 +485,8 @@
>> 'cpu-throttle-initial', 'cpu-throttle-increment',
>> 'tls-creds', 'tls-hostname', 'max-bandwidth',
>> 'downtime-limit', 'x-checkpoint-delay', 'block-incremental',
>> - 'x-multifd-channels', 'x-multifd-page-count' ] }
>> + 'x-multifd-channels', 'x-multifd-page-count',
>> + 'xbzrle-cache-size' ] }
>>
>> ##
>> # @MigrateSetParameters:
>> @@ -545,6 +550,9 @@
>> # @x-multifd-page-count: Number of pages sent together to a thread
>> # The default value is 16 (since 2.11)
>> #
>> +# @xbzrle-cache-size: cache size to be used by XBZRLE migration. It
>> +# needs to be a multiple of the target page size
>> +# (Since 2.11)
>
> and power of 2
>
>> # Since: 2.4
>> ##
>> # TODO either fuse back into MigrationParameters, or make
>> @@ -562,7 +570,8 @@
>> '*x-checkpoint-delay': 'int',
>> '*block-incremental': 'bool',
>> '*x-multifd-channels': 'int',
>> - '*x-multifd-page-count': 'int' } }
>> + '*x-multifd-page-count': 'int',
>> + '*xbzrle-cache-size': 'size' } }
>>
>> ##
>> # @migrate-set-parameters:
>> @@ -641,6 +650,9 @@
>> # @x-multifd-page-count: Number of pages sent together to a thread
>> # The default value is 16 (since 2.11)
>> #
>> +# @xbzrle-cache-size: cache size to be used by XBZRLE migration. It
>> +# needs to be a multiple of the target page size
>> +# (Since 2.11)
>
> and power of 2 (wow this text is repeated a lot)
We repeat each parameter three times, and the text another three times.
Could we just put a pointer telling that documentation is in a single
place and call it a day?
I know that we need to declare the name in three places for historical
reasons, but at least the help can be done in a single place, or is the
text taken automagically?
Later, Juan.
next prev parent reply other threads:[~2017-10-18 8:50 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-10 18:15 [Qemu-devel] [PATCH 00/10] Make xbzrle_cache_size a migration parameter Juan Quintela
2017-10-10 18:15 ` [Qemu-devel] [PATCH 01/10] migration: Fix migrate_test_apply for multifd parameters Juan Quintela
2017-10-12 5:46 ` Peter Xu
2017-10-18 8:37 ` Juan Quintela
2017-10-10 18:15 ` [Qemu-devel] [PATCH 02/10] migratiom: Remove max_item_age parameter Juan Quintela
2017-10-12 5:46 ` Peter Xu
2017-10-10 18:15 ` [Qemu-devel] [PATCH 03/10] migration: Make cache size elements use the right types Juan Quintela
2017-10-12 10:01 ` Dr. David Alan Gilbert
2017-10-10 18:15 ` [Qemu-devel] [PATCH 04/10] migration: Move xbzrle cache resize error handling to xbzrle_cache_resize Juan Quintela
2017-10-12 5:48 ` Peter Xu
2017-10-10 18:15 ` [Qemu-devel] [PATCH 05/10] migration: Make cache_init() take an error parameter Juan Quintela
2017-10-12 5:55 ` Peter Xu
2017-10-10 18:15 ` [Qemu-devel] [PATCH 06/10] migration: Make sure that we pass the right cache size Juan Quintela
2017-10-12 5:57 ` Peter Xu
2017-10-18 8:45 ` Juan Quintela
2017-10-10 18:15 ` [Qemu-devel] [PATCH 07/10] migration: Don't play games with the requested " Juan Quintela
2017-10-10 18:15 ` [Qemu-devel] [PATCH 08/10] migration: No need to return the size of the cache Juan Quintela
2017-10-10 18:15 ` [Qemu-devel] [PATCH 09/10] migration: Make xbzrle_cache_size a migration parameter Juan Quintela
2017-10-12 12:04 ` Dr. David Alan Gilbert
2017-10-18 8:50 ` Juan Quintela [this message]
2017-10-10 18:15 ` [Qemu-devel] [PATCH 10/10] migration: [RFC] Use proper types in json Juan Quintela
2017-10-11 9:28 ` Daniel P. Berrange
2017-10-11 9:41 ` Juan Quintela
2017-11-06 14:26 ` Markus Armbruster
2017-11-08 9:41 ` Juan Quintela
2017-11-08 10:25 ` Markus Armbruster
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=878tg8on5i.fsf@secure.laptop \
--to=quintela@redhat.com \
--cc=berrange@redhat.com \
--cc=dgilbert@redhat.com \
--cc=lvivier@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
/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.