From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Rafal Wojtczuk <rafal@invisiblethingslab.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: Re: Improving domU restore time
Date: Wed, 02 Jun 2010 09:33:22 -0700 [thread overview]
Message-ID: <4C0687D2.6050908@goop.org> (raw)
In-Reply-To: <20100602162413.GA7173@emperor2.itldev.org>
On 06/02/2010 09:24 AM, Rafal Wojtczuk wrote:
>> Why not just balloon the domain down?
>>
> I thought it (well, rather the matching balloon up after restore) would cost
> quite some CPU time; it used to AFAIR. But nowadays it looks sensible, in 90ms
> range. Yes, that is much cleaner, thank you for the hint.
>
Aside from the cost of the hypercalls to actually give up the pages,
ballooning is just the same as memory allocation from the system's
perspective.
>>> should be no disk reads at all). Is the single threaded nature of xenstored
>>> the possible cause for the delays ?
>>>
>> Have you tried oxenstored? It works well for me, and seems to be a lot
>> faster.
>>
> Do you mean
> http://xenbits.xensource.com/ext/xen-ocaml-tools.hg
> ?
> After some tweaks to Makefiles (-fPIC is required on x86_64 for libs sources)
> it compiles,
It builds out of the box for me on my x86-64 machine.
> but then it bails during startup with
> fatal error: exception Failure("ioctl bind_interdomain failed")
> This happens under xen-3.4.3; does it require 4.0.0 ?
>
No, I don't think so, but it does have to be the first xenstore you run
after boot. Ah, but Xen 4 probably has oxenstored build and other fixes
which aren't in 3.4.3. In particular, I think it has been brought into
the main xen-unstable repo, rather than living off to the side.
But it is much quicker than the C one, I think primarily because it is
entirely memory resident.
> Well, it looks like xc_restore should _usually_ call
> xc_map_foreign_batch once per pages batch (once per 1024 read pages), which
> looks sensible. xc_add_mmu_update also tries to batch requests. There are
> 432 occurences of ioctl syscall in the xc_restore strace output; I am not
> sure if it is damagingly numerous.
>
Time for some profiling to see where the time is going then.
J
prev parent reply other threads:[~2010-06-02 16:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-25 10:35 Improving domU restore time Rafal Wojtczuk
2010-05-25 10:58 ` Joanna Rutkowska
2010-05-25 11:50 ` Keir Fraser
2010-05-25 12:50 ` Rafal Wojtczuk
2010-05-25 12:59 ` Keir Fraser
2010-05-25 13:33 ` scrubbing free'd pages James Harper
2010-05-25 13:39 ` Keir Fraser
2010-05-25 13:48 ` Paul Durrant
2010-05-25 14:12 ` scrubbing pages on vm pause Joanna Rutkowska
2010-05-25 14:13 ` Keir Fraser
2010-05-25 14:19 ` Joanna Rutkowska
2010-05-25 14:19 ` Keir Fraser
2010-05-25 14:24 ` Joanna Rutkowska
2010-05-25 13:02 ` Improving domU restore time Keir Fraser
2010-05-31 9:42 ` Rafal Wojtczuk
2010-06-01 17:00 ` Jeremy Fitzhardinge
2010-06-02 16:24 ` Rafal Wojtczuk
2010-06-02 16:33 ` Jeremy Fitzhardinge [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=4C0687D2.6050908@goop.org \
--to=jeremy@goop.org \
--cc=keir.fraser@eu.citrix.com \
--cc=rafal@invisiblethingslab.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.