From: nicolas prochazka <prochazka.nicolas@gmail.com>
To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
Cc: "Stefan Hajnoczi" <stefanha@gmail.com>,
"Jonah.Wu-吳君勉-研究發展部" <jonah.wu@cloudena.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] The image size of instance VM keeps growing
Date: Wed, 23 May 2012 12:58:31 +0200 [thread overview]
Message-ID: <CADdae-jA+LP8MzQ5TsM3wB+wchousLNfnRFn0c4jVps+b28AsQ@mail.gmail.com> (raw)
In-Reply-To: <B98D01AC6D58544886DC44AD0A4A1F6504B83AFF@MBX02.systex.tw>
[-- Attachment #1: Type: text/plain, Size: 3073 bytes --]
hello,
I think it's not qemu relative but windows relative
Windows do a lot of things as auto defrag disk ( without monitoring) when
idle time
read this document:
http://www.vmware.com/files/pdf/VMware-View-OptimizationGuideWindows7-EN.pdfand
optimize your guest.
Regards,
Nicolas P.
2012/5/23 Charles.Tsai-蔡清海-研究發展部 <charles.tsai@cloudena.com>
> Stefan,
>
> Here are what we tested and found for this issue.
>
> 1. We checked the integrity of the qcow2 image by running
> “qemu-img check” and it looked good.
> 2. We monitored the I/O activities of VM using
> “Process monitor”, “Process explorer” and could not find a process
> running an aggressive I/O activity in the background.
>
> In the guest OS, the following configurations are turn off to cut
> down I/O activities.
> 1. Disable the NIC.
> 2. Disable Windows automatic update.
> 3. Disable the page file of the virtual memory.
>
> After the VM ran for overnight, the image size for the running VM
> grew up to 3G bytes.
>
>
> This issue is very easy to be duplicated. Here are the steps.
>
> 1. Create a qcow2 image of 64-bit Windows 7 VM from the CD.
> 2. Launch the VM
> 3. Turn off the VM configurations stated above.
> 4. Let the VM run.
> 5. Watch the growth of the VM image size. The longer the VM
> runs, the bigger the size of the VM is.
>
> During the run-time, you can run “process monitor” to watch guest
> OS’s I/O activities. You can see File I/O, registry I/O from the
> system during the run-time in this test case. But the growth rate of the
> image size seems to be greater than default system I/O.
>
>
> -----Original Message-----
> From: Stefan Hajnoczi [mailto:stefanha@gmail.com]
> Sent: Monday, May 21, 2012 9:24 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: qemu-devel@nongnu.org; Jonah.Wu-吳君勉-研究發展部
> Subject: Re: [Qemu-devel] The image size of instance VM keeps growing
>
> On Mon, May 21, 2012 at 10:08 AM, Charles.Tsai-蔡清海-研究發展部
> <charles.tsai@cloudena.com> wrote:
> > We can run a tool to see if there is any active I/O or not. Does the
> image size shrink back if an I/O activity stops?
> > What we found here is that the image size kept growing. If this problem
> persists, it could eat up the entire disk space.
>
> It's possible for an image to grow larger than its backing file due to the
> layout and metadata of qcow2 (or any image file format). But this overhead
> should be fixed to maximum 1 MB, maybe (assuming you are not using qcow2
> snapshots where the file can grow arbitrarily).
>
> If the image file is growing endlessly then there is a problem :).
> The starting point is figuring out which I/O request causes this to happen
> so it can be reproduced and debugged. Can you isolate the problem to a few
> steps that can be reproduced?
>
> Stefan
>
[-- Attachment #2: Type: text/html, Size: 3913 bytes --]
next prev parent reply other threads:[~2012-05-23 10:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-21 7:47 [Qemu-devel] The image size of instance VM keeps growing Charles.Tsai-蔡清海-研究發展部
2012-05-21 8:44 ` Stefan Hajnoczi
2012-05-21 9:08 ` Charles.Tsai-蔡清海-研究發展部
2012-05-21 13:24 ` Stefan Hajnoczi
2012-05-22 0:58 ` Charles.Tsai-蔡清海-研究發展部
2012-05-23 10:47 ` Charles.Tsai-蔡清海-研究發展部
2012-05-23 10:58 ` nicolas prochazka [this message]
2012-05-23 12:57 ` Stefan Hajnoczi
2012-05-23 13:11 ` Michael Tokarev
2012-05-24 2:35 ` Charles.Tsai-蔡清海-研究發展部
2012-05-25 11:28 ` Stefan Hajnoczi
2012-05-24 2:33 ` Charles.Tsai-蔡清海-研究發展部
2012-05-24 10:40 ` Charles.Tsai-蔡清海-研究發展部
2012-05-25 11:36 ` Stefan Hajnoczi
2012-05-25 9:20 ` Charles.Tsai-蔡清海-研究發展部
2012-05-25 11:45 ` Stefan Hajnoczi
2012-05-25 2:42 ` [Qemu-devel] Tracing message for mu Charles.Tsai-蔡清海-研究發展部
2012-05-25 8:13 ` Stefan Hajnoczi
2012-05-26 6:50 ` Charles.Tsai-蔡清海-研究發展部
2012-05-28 12:30 ` Stefan Hajnoczi
2012-05-23 14:17 ` [Qemu-devel] The image size of instance VM keeps growing Michael Roth
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=CADdae-jA+LP8MzQ5TsM3wB+wchousLNfnRFn0c4jVps+b28AsQ@mail.gmail.com \
--to=prochazka.nicolas@gmail.com \
--cc=charles.tsai@cloudena.com \
--cc=jonah.wu@cloudena.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.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 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).