[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: |
Li, Liang Z |
Subject: |
Re: [Qemu-devel] [PATCH QEMU 5/5] migration: Add the interface for cache drop control |
Date: |
Tue, 19 Apr 2016 14:59:11 +0000 |
> Sent: Tuesday, April 19, 2016 10:52 PM
> To: Li, Liang Z; address@hidden; address@hidden;
> address@hidden; address@hidden; address@hidden
> Cc: address@hidden; address@hidden;
> address@hidden; address@hidden; address@hidden;
> address@hidden; address@hidden; address@hidden;
> address@hidden; address@hidden; address@hidden;
> address@hidden
> Subject: Re: [Qemu-devel] [PATCH QEMU 5/5] migration: Add the interface
> for cache drop control
>
> 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.
>
The enum type looks better, thanks!
Liang
> --
> Eric Blake eblake redhat com +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
- [Qemu-devel] [PATCH QEMU 0/5] spee up live migration by skipping free pages, Liang Li, 2016/04/19
- [Qemu-devel] [PATCH QEMU 1/5] bitmap: Add a new bitmap_move function, Liang Li, 2016/04/19
- [Qemu-devel] [PATCH QEMU 2/5] kvm: Add two new arch specific functions, Liang Li, 2016/04/19
- [Qemu-devel] [PATCH QEMU 3/5] virtio-balloon: Add a new feature to balloon device, Liang Li, 2016/04/19
- [Qemu-devel] [PATCH QEMU 4/5] migration: filter out free pages during live migration, Liang Li, 2016/04/19
- [Qemu-devel] [PATCH QEMU 5/5] migration: Add the interface for cache drop control, Liang Li, 2016/04/19
- Re: [Qemu-devel] [PATCH QEMU 0/5] spee up live migration by skipping free pages, Alexander Graf, 2016/04/19