From: xuanmao_001 <xuanmao_001@163.com>
To: qemu-discuss <qemu-discuss@nongnu.org>,
qemu-devel <qemu-devel@nongnu.org>
Cc: Kevin Wolf <kwolf@redhat.com>
Subject: [Qemu-devel] savevm too slow
Date: Fri, 6 Sep 2013 09:31:20 +0800 [thread overview]
Message-ID: <2013090609312026502832@163.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 844 bytes --]
Hi, qemuers:
I found that the guest disk file cache mode will affect to the time of savevm.
the cache 'writeback' too slow. but the cache 'unsafe' is as fast as it can, less than 10 seconds.
here is the example I use virsh:
@cache with writeback:
#the first snapshot
real 0m21.904s
user 0m0.006s
sys 0m0.008s
#the secondary snapshot
real 2m11.624s
user 0m0.013s
sys 0m0.008s
@cache with unsafe:
#the first snapshot
real 0m0.730s
user 0m0.006s
sys 0m0.005s
#the secondary snapshot
real 0m1.296s
user 0m0.002s
sys 0m0.008s
so, what the difference between them when using different cache.
the other question: when I change the buffer size #define IO_BUF_SIZE 32768
to #define IO_BUF_SIZE (1 * 1024 * 1024), the savevm is more quickly.
thanks.
xuanmao_001
[-- Attachment #2: Type: text/html, Size: 2428 bytes --]
next reply other threads:[~2013-09-06 1:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 1:31 xuanmao_001 [this message]
2013-09-06 10:38 ` [Qemu-devel] savevm too slow Kevin Wolf
2013-09-09 1:57 ` xuanmao_001
2013-09-09 8:35 ` Kevin Wolf
2013-09-09 8:47 ` xuanmao_001
2013-09-09 9:16 ` Kevin Wolf
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=2013090609312026502832@163.com \
--to=xuanmao_001@163.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-discuss@nongnu.org \
/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).