From: Anthony Liguori <aliguori@us.ibm.com>
To: Avi Kivity <avi@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Re: [Qemu-commits] [COMMIT 3086844] Instead of writing a zero page, madvise it away
Date: Mon, 22 Jun 2009 12:37:33 -0500 [thread overview]
Message-ID: <4A3FC15D.1020705@us.ibm.com> (raw)
In-Reply-To: <4A3FBD61.8030109@redhat.com>
Avi Kivity wrote:
> You mean, a NONZERO bit which is cleared by ballooning and set on any
> write. This will work naturally with the qemu dirty bytemap.
Yes.
>>
>> For KVM, we would have to enable dirty tracking always to keep
>> ZERO_DIRTY up to date. Since write faults are going to happen anyway
>> at start up, perhaps the cost of doing this wouldn't be so bad?
>
> You need to do this on the source node. Unfortunately, there's no way
> to initialize the values racelessly when you start live migration
> without introducing a new ioctl. I'd like a more general solution
> rather than something that targets this specific problem.
I'm saying, always enable dirty tracking from start-of-day with KVM.
Then the QEMU dirty bitmap is always accurate. The trick is to never
start resetting it until you need to do live migration.
The idea being that once the dirty bits have been set, the overhead
(hopefully) should be zero.
--
Regards,
Anthony Liguori
next prev parent reply other threads:[~2009-06-22 17:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200906221549.n5MFn3Qd015389@d03av02.boulder.ibm.com>
2009-06-22 16:12 ` [Qemu-devel] Re: [Qemu-commits] [COMMIT 3086844] Instead of writing a zero page, madvise it away Avi Kivity
2009-06-22 16:25 ` Anthony Liguori
2009-06-22 16:38 ` Avi Kivity
2009-06-22 16:58 ` Anthony Liguori
2009-06-22 17:12 ` Avi Kivity
2009-06-22 17:03 ` Anthony Liguori
2009-06-22 17:20 ` Avi Kivity
2009-06-22 17:37 ` Anthony Liguori [this message]
2009-06-22 18:01 ` Avi Kivity
2009-06-22 17:44 ` Anthony Liguori
2009-06-22 18:04 ` Avi Kivity
2009-06-22 19:38 ` Paul Brook
2009-06-22 19:49 ` Anthony Liguori
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=4A3FC15D.1020705@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=avi@redhat.com \
--cc=qemu-devel@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).