qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH QEMU 5/5] migration: Add the interface for cache


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH QEMU 5/5] migration: Add the interface for cache drop control
Date: Tue, 19 Apr 2016 08:52:17 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1

On 04/19/2016 08:20 AM, Liang Li wrote:
> Whether drop the cache and drop what kind of cache depend on the

Whether to drop the cache, and what kind of cache drop to perform,
depend ...

> user, add the related qmp and hmp interface to query and set the
> cache control value.
> 
> Signed-off-by: Liang Li <address@hidden>
> ---

> +++ b/qapi-schema.json
> @@ -612,11 +612,21 @@
>  # @x-cpu-throttle-increment: throttle percentage increase each time
>  #                            auto-converge detects that migration is not 
> making
>  #                            progress. The default value is 10. (Since 2.5)
> +# @x-drop-cache: drop guest's page cache during live migration, the value can
> +#         be set to 0, 1, 2, 3. 1 means drop the clean page cache, 2 means
> +#         drop the slab cache, 3 means to drop both clean page cache, 0 means
> +#         do not drop any cache. Drop cache can speed up live migration
> +#         process and reduce the network traffic, the side affect is the
> +#         performance impact to the guest, 1 is the recommended value for
> +#         proper balance between speed and performance. The value only takes
> +#         affect when the virtio-balloon device are enabled and the guest
> +#         has the related driver. The default value is 0. (Since 2.7)

Absolutely not this interface.  Make this an enum type, not a raw
magic-number integer type, where the user requests
"x-drop-cache":"clean", "x-drop-cache":"slab", and so on.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]