qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Liang Li <liang.z.li@intel.com>,
	mst@redhat.com, quintela@redhat.com, amit.shah@redhat.com,
	pbonzini@redhat.com, lcapitulino@redhat.com
Cc: peter.maydell@linaro.org, james.hogan@imgtec.com,
	ehabkost@redhat.com, kvm@vger.kernel.org, qemu-devel@nongnu.org,
	armbru@redhat.com, agraf@suse.de, borntraeger@de.ibm.com,
	cornelia.huck@de.ibm.com, leon.alrae@imgtec.com,
	aurelien@aurel32.net, rth@twiddle.net
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	[thread overview]
Message-ID: <57164621.8010700@redhat.com> (raw)
In-Reply-To: <1461075643-3668-6-git-send-email-liang.z.li@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1633 bytes --]

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 <liang.z.li@intel.com>
> ---

> +++ 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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  reply	other threads:[~2016-04-19 14:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-19 14:20 [Qemu-devel] [PATCH QEMU 0/5] spee up live migration by skipping free pages Liang Li
2016-04-19 14:20 ` [Qemu-devel] [PATCH QEMU 1/5] bitmap: Add a new bitmap_move function Liang Li
2016-04-19 14:20 ` [Qemu-devel] [PATCH QEMU 2/5] kvm: Add two new arch specific functions Liang Li
2016-04-19 14:20 ` [Qemu-devel] [PATCH QEMU 3/5] virtio-balloon: Add a new feature to balloon device Liang Li
2016-04-19 16:32   ` Michael S. Tsirkin
2016-04-19 14:20 ` [Qemu-devel] [PATCH QEMU 4/5] migration: filter out free pages during live migration Liang Li
2016-04-19 14:20 ` [Qemu-devel] [PATCH QEMU 5/5] migration: Add the interface for cache drop control Liang Li
2016-04-19 14:52   ` Eric Blake [this message]
2016-04-19 14:59     ` Li, Liang Z
2016-04-19 14:37 ` [Qemu-devel] [PATCH QEMU 0/5] spee up live migration by skipping free pages Alexander Graf

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=57164621.8010700@redhat.com \
    --to=eblake@redhat.com \
    --cc=agraf@suse.de \
    --cc=amit.shah@redhat.com \
    --cc=armbru@redhat.com \
    --cc=aurelien@aurel32.net \
    --cc=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=ehabkost@redhat.com \
    --cc=james.hogan@imgtec.com \
    --cc=kvm@vger.kernel.org \
    --cc=lcapitulino@redhat.com \
    --cc=leon.alrae@imgtec.com \
    --cc=liang.z.li@intel.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=rth@twiddle.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).