All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brendan Cully <brendan@cs.ubc.ca>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com,
	"Daniel P. Berrange" <berrange@redhat.com>
Subject: Re: [RFC] use event channel to improve suspend speed
Date: Fri, 25 May 2007 16:41:59 -0700	[thread overview]
Message-ID: <20070525234159.GD12359@ventoux.cs.ubc.ca> (raw)
In-Reply-To: <C27C44E0.7EA7%Keir.Fraser@cl.cam.ac.uk>

On Friday, 25 May 2007 at 07:46, Keir Fraser wrote:
> On 25/5/07 01:06, "Brendan Cully" <brendan@cs.ubc.ca> wrote:
> 
> > In case there's interest, I'll attach the two patches I'm using to
> > speed up checkpointing (and live migration downtime). As I mentioned
> > earlier, the first patch should be semantically equivalent to existing
> > code, and cuts downtime to about 30-35ms. The second notifies xend
> > that the domain has been suspended asynchronously, so that final round
> > memory copying may begin before device migration stage 2. This is a
> > semantic change, but I can't think of a concrete drawback. It's a
> > little rough-and-ready -- suggestions for improvement are welcome.
> 
> Can patch 2 be used without patch 1? The fact it doesn't need to change the
> guest interface again is a big advantage. And it seems to provide by far the
> larger proportional speedup.

Yes, it's possible to separate them out. But they work best together,
since that's the only case where xenstore is completely removed from
the suspend path. I've done another version of patch 1 in which
xc_save triggers the suspend by writing to xenstore (instead of asking
xend to do it), with a vanilla guest kernel. With patch 2 also
applied, I get this:

avg: 23.17 ms, min: 9.08, max: 545.51, median: 13.66

implying the base penalty for using xenstore is about 5-10ms, and we
still suffer some pretty serious jitter.

The same test with /var/lib/xenstored mounted on tmpfs is much less
jittery:

avg: 14.62 ms, min: 8.27, max: 32.67, median: 11.71

but there's still a 5-20ms xenstore penalty.

      reply	other threads:[~2007-05-25 23:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09  0:01 [RFC] use event channel to improve suspend speed Brendan Cully
2007-05-10 22:13 ` Brendan Cully
2007-05-10 23:00   ` Daniel P. Berrange
2007-05-11  0:06     ` Brendan Cully
2007-05-11  6:55     ` Keir Fraser
2007-05-25  0:06       ` Brendan Cully
2007-05-25  6:46         ` Keir Fraser
2007-05-25 23:41           ` Brendan Cully [this message]

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=20070525234159.GD12359@ventoux.cs.ubc.ca \
    --to=brendan@cs.ubc.ca \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=berrange@redhat.com \
    --cc=xen-devel@lists.xensource.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.