All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: xen-devel@lists.xensource.com
Subject: Re: [RFC] use event channel to improve suspend speed
Date: Fri, 11 May 2007 00:00:05 +0100	[thread overview]
Message-ID: <20070510230005.GA17705@redhat.com> (raw)
In-Reply-To: <20070510221310.GD9138@ventoux.cs.ubc.ca>

On Thu, May 10, 2007 at 03:13:10PM -0700, Brendan Cully wrote:
> The posted patch was a fairly conservative approach (backward
> compatible, equivalent to existing semantics). I've done some
> more experimental work that reduces the time for the final round to
> about 5ms. Here are the stats for 100 checkpoints:
> 
> avg: 5.62 ms, min: 3.96, max: 13.70, median: 4.86
> 
> It turns out the biggest remaining delay is (surprise!) xenstored. To
> get the above numbers I unwired xenstored from VIRQ_DOM_EXC and let
> xc_save bind to it.
> 
> Obviously this isn't a practical approach. I'd love to hear any ideas
> about the right way to avoid the xenstore penalty though. My current
> thought is that it might be possible to arrange to register a dynamic
> virq from xc_save into xen for a target domain, and then have xen fire
> it on suspend instead of DOM_EXC (iff it's installed, otherwise use
> the normal path).

It would be interesting to know what aspect of the xenstore interaction
is responsible for the slowdown. In particular, whether it is a fundamental
architectural constraint, or whether it is merely due to the poor performance
of the current impl. We already know from previous tests that XenD impl of
transactions absolutely kills performance of various XenD operations due to 
the vast amount of unneccessary I/O it does. 

If fixing the XenstoreD transaction code were to help suspend performance 
too, it might be a better option than re-writing all code which touches
xenstore. A quick test of putting /var/lib/xenstored on a ramdisk would
be a way of testing whether its the I/O which is hurting suspend time.

Dan
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

  reply	other threads:[~2007-05-10 23:00 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 [this message]
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

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=20070510230005.GA17705@redhat.com \
    --to=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.