From: "Daniel P. Berrange" <berrange@redhat.com>
To: Nikola Ciprich <extmaillist@linuxbox.cz>
Cc: libvirt list <libvir-list@redhat.com>,
nikola.ciprich@linuxbox.cz, KVM list <kvm@vger.kernel.org>
Subject: [libvirt] Re: libvirk KVM save (migrate) terribly slow
Date: Thu, 10 Dec 2009 11:44:34 +0000 [thread overview]
Message-ID: <20091210114434.GD13534@redhat.com> (raw)
In-Reply-To: <20091210070512.GA6384@develbox.linuxbox.cz>
On Thu, Dec 10, 2009 at 08:05:12AM +0100, Nikola Ciprich wrote:
> Hi,
> I noticed that using libvirt to save running domain is terribly slow,
> I mean it can take even 10 minutes to save VM with 2GB RAM, although
> the host is almost idle (8CPU, 16GB RAM). If I understand correctly,
> libvirt first pauses the vm and then migrates it to file (optionally through gzip).
> Restoring it back to running state is almost instant.
> I guess this is not what should be expected, is there something particular
> I should check?
This matches behaviour that I see when saving VMs. QEMU takes a really
very long time to save itself using migrate exec:. It is not CPU limited
even in gzip mode - there is near zero CPU usage while this is going on.
QEMU just seems to be very slow at sending the data. I've not had time to
investigate whether this is a flaw in QEMU's exec: migration handling,
or whether it is being hurt by too small pipe buffers, or something else
entirely. I must say I'm not entirely convinced that it is a good idea
for QEMU to be mixing use of FILE * / popen, with non-blocking I/O, but
that could be a red-herring.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
next prev parent reply other threads:[~2009-12-10 11:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-10 7:05 [libvirt] libvirk KVM save (migrate) terribly slow Nikola Ciprich
2009-12-10 11:44 ` Daniel P. Berrange [this message]
2009-12-10 12:30 ` Pierre Riteau
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=20091210114434.GD13534@redhat.com \
--to=berrange@redhat.com \
--cc=extmaillist@linuxbox.cz \
--cc=kvm@vger.kernel.org \
--cc=libvir-list@redhat.com \
--cc=nikola.ciprich@linuxbox.cz \
/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