All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: zhanghailiang <zhang.zhanghailiang@huawei.com>
Cc: amit.shah@redhat.com, peter.huangpeng@huawei.com,
	qemu-devel@nongnu.org, jjherne@linux.vnet.ibm.com,
	quintela@redhat.com
Subject: Re: [Qemu-devel] [PATCH 5/6] qmp-commands.hx: Fix the missing options for migration parameters commands
Date: Thu, 28 Jan 2016 18:22:59 +0000	[thread overview]
Message-ID: <20160128182259.GG2911@work-vm> (raw)
In-Reply-To: <1452829066-9764-6-git-send-email-zhang.zhanghailiang@huawei.com>

* zhanghailiang (zhang.zhanghailiang@huawei.com) wrote:
> We didn't document x-cpu-throttle-initial/x-cpu-throttle-increment for
> commands migrate-set-parameters and query-migrate-parameters.
> 
> Here we add the descriptions for these two options and fix the wrong example
> for query-migrate-parameters qmp commands.
> Besides, this will also fix the bug that we can't set x-cpu-throttle-initial
> and x-cpu-throttle-increment through migrate-set-parameters qmp command.
> 
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>

(cc'd in Jason who wrote the autothrottle)

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

> ---
>  qmp-commands.hx | 18 ++++++++++++++----
>  1 file changed, 14 insertions(+), 4 deletions(-)
> 
> diff --git a/qmp-commands.hx b/qmp-commands.hx
> index db072a6..0a2cded 100644
> --- a/qmp-commands.hx
> +++ b/qmp-commands.hx
> @@ -3700,6 +3700,10 @@ Set migration parameters
>  - "compress-level": set compression level during migration (json-int)
>  - "compress-threads": set compression thread count for migration (json-int)
>  - "decompress-threads": set decompression thread count for migration (json-int)
> +- "x-cpu-throttle-initial": set initial percentage of time guest cpus are
> +                           throttled for auto-coverge (json-int)
> +- "x-cpu-throttle-increment": set throttle increasing percentage for
> +                             auto-converge (json-int)
>  
>  Arguments:
>  
> @@ -3713,7 +3717,7 @@ EQMP
>      {
>          .name       = "migrate-set-parameters",
>          .args_type  =
> -            "compress-level:i?,compress-threads:i?,decompress-threads:i?",
> +            "compress-level:i?,compress-threads:i?,decompress-threads:i?,x-cpu-throttle-initial:i?,x-cpu-throttle-increment:i?",
>          .mhandler.cmd_new = qmp_marshal_migrate_set_parameters,
>      },
>  SQMP
> @@ -3726,6 +3730,10 @@ Query current migration parameters
>           - "compress-level" : compression level value (json-int)
>           - "compress-threads" : compression thread count value (json-int)
>           - "decompress-threads" : decompression thread count value (json-int)
> +         - "x-cpu-throttle-initial" : initial percentage of time guest cpus are
> +                                      throttled (json-int)
> +         - "x-cpu-throttle-increment" : throttle increasing percentage for
> +                                        auto-converge (json-int)
>  
>  Arguments:
>  
> @@ -3734,9 +3742,11 @@ Example:
>  -> { "execute": "query-migrate-parameters" }
>  <- {
>        "return": {
> -         "decompress-threads", 2,
> -         "compress-threads", 8,
> -         "compress-level", 1
> +         "decompress-threads": 2,
> +         "x-cpu-throttle-increment": 10,
> +         "compress-threads": 8,
> +         "compress-level": 1,
> +         "x-cpu-throttle-initial": 20
>        }
>     }
>  
> -- 
> 1.8.3.1
> 
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

  reply	other threads:[~2016-01-28 18:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-15  3:37 [Qemu-devel] [PATCH 0/6] Some improvements and small fixes for migration zhanghailiang
2016-01-15  3:37 ` [Qemu-devel] [PATCH 1/6] ram: Split host_from_stream_offset() into two helper functions zhanghailiang
2016-01-15  3:37 ` [Qemu-devel] [PATCH 2/6] migration: Rename the'file' member of MigrationState zhanghailiang
2016-02-04 10:47   ` Amit Shah
2016-02-04 10:50     ` Dr. David Alan Gilbert
2016-02-04 10:57       ` Amit Shah
2016-02-04 11:10         ` Dr. David Alan Gilbert
2016-02-04 12:02           ` Hailiang Zhang
2016-01-15  3:37 ` [Qemu-devel] [PATCH 3/6] savevm: Split load vm state function qemu_loadvm_state zhanghailiang
2016-01-15  3:37 ` [Qemu-devel] [PATCH 4/6] migration/ram: Fix some helper functions' parameter to use PageSearchStatus zhanghailiang
2016-01-15  3:37 ` [Qemu-devel] [PATCH 5/6] qmp-commands.hx: Fix the missing options for migration parameters commands zhanghailiang
2016-01-28 18:22   ` Dr. David Alan Gilbert [this message]
2016-02-04 10:30   ` Amit Shah
2016-01-15  3:37 ` [Qemu-devel] [PATCH 6/6] qmp-commands.hx: Document the missing options for migration capability commands zhanghailiang
2016-01-28 18:24   ` Dr. David Alan Gilbert
2016-01-22  8:43 ` [Qemu-devel] [PATCH 0/6] Some improvements and small fixes for migration Hailiang Zhang
2016-01-30 10:32 ` Hailiang Zhang
2016-02-04 10:08   ` Amit Shah
2016-02-04 11:08 ` Amit Shah
2016-02-04 12:01   ` Hailiang Zhang

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=20160128182259.GG2911@work-vm \
    --to=dgilbert@redhat.com \
    --cc=amit.shah@redhat.com \
    --cc=jjherne@linux.vnet.ibm.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=zhang.zhanghailiang@huawei.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.