qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: "Shribman, Aidan" <aidan.shribman@sap.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"quintela@redhat.com" <quintela@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] Add warmup phase for live migration of large memory apps
Date: Thu, 12 May 2011 08:12:45 -0500	[thread overview]
Message-ID: <4DCBDCCD.4070600@codemonkey.ws> (raw)
In-Reply-To: <AB5A8C7661872E428D6B8E1C2DFA35085CAAEEB603@DEWDFECCR02.wdf.sap.corp>

On 05/12/2011 06:23 AM, Shribman, Aidan wrote:
>> From: Juan Quintela [mailto:quintela@redhat.com]
>>
>>> If there are no additional dirty pages to be sent
>>> i.e. ram_save_remaining() == 0 then the migration *will* converge
>>> (even though we don't want it to) see:
>>
>> This should be a really idle guest to have that O:-)
>>
>> But if that is the whole problem, I would change the code to make the
>> case of max_downtime == 0 to mean that migration didn't converge.
>>
>
> I agree this would be fine as surrogate for the warmup patch as I proposed. New patch based on your's / Anthony's suggestion:
>
> ---
> diff --git a/arch_init.c b/arch_init.c
> index 4486925..9a35411 100644
> --- a/arch_init.c
> +++ b/arch_init.c
> @@ -295,7 +295,8 @@ int ram_save_live(Monitor *mon, QEMUFile *f, int stage, void *opaque)
>
>       expected_time = ram_save_remaining() * TARGET_PAGE_SIZE / bwidth;
>
> -    return (stage == 2)&&  (expected_time<= migrate_max_downtime());
> +    return (stage == 2)&&  migrate_max_downtime()&&
> +        (expected_time<= migrate_max_downtime());
>   }


This is better but let's make sure to document this behavior (and please 
include a Signed-off-by: in the next patch).

Regards,

Anthony Liguori

>   static inline void *host_from_stream_offset(QEMUFile *f,
> ---
>
> Best,
> Aidan

  reply	other threads:[~2011-05-12 13:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11  7:58 [Qemu-devel] [PATCH] Add warmup phase for live migration of large memory apps Shribman, Aidan
2011-05-11  9:19 ` Stefan Hajnoczi
2011-05-12  8:42   ` Shribman, Aidan
2011-05-12 10:39     ` Juan Quintela
2011-05-12 10:54       ` Isaku Yamahata
2011-05-13  2:55         ` Yoshiaki Tamura
2011-05-15 14:25           ` Shribman, Aidan
2011-05-11 13:35 ` Anthony Liguori
2011-05-11 14:23   ` Shribman, Aidan
2011-05-12 10:57     ` Juan Quintela
2011-05-12 11:23       ` Shribman, Aidan
2011-05-12 13:12         ` Anthony Liguori [this message]
2011-05-12 10:55 ` Juan Quintela

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=4DCBDCCD.4070600@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=aidan.shribman@sap.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.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 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).