Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-25 Thread Stefan Hajnoczi
On Fri, May 25, 2012 at 10:20 AM, Charles.Tsai-蔡清海-研究發展部 wrote: > Stefan, > >I made two test cases here. > >1) case one: >A 32-bit Windows 7 VM with 8G virtual disk size. >In this test, the virtual disk is almost full. >Like what you

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-25 Thread Stefan Hajnoczi
On Thu, May 24, 2012 at 11:40 AM, Charles.Tsai-蔡清海-研究發展部 wrote: > Stefan, > >Can you explain why a 64KB could be allocated for each sector write? The default cluster size in qcow2 is 64 KB. qcow2 manages space in 64 KB pieces. Therefore, when you write to a region of the image that has

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-25 Thread Stefan Hajnoczi
On Wed, May 23, 2012 at 2:11 PM, Michael Tokarev wrote: > On 23.05.2012 16:57, Stefan Hajnoczi wrote: > [] >> However, the qcow2 file should not grow much beyond its virtual disk >> size.  So if you find the qcow2 is 3G but the virtual disk size is 1G, >> then there is a bug.  But from what you've

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-25 Thread Charles . Tsai-蔡清海-研究發展部
:41 PM To: 'Stefan Hajnoczi' Cc: qemu-devel@nongnu.org; Jonah.Wu-吳君勉-研究發展部 Subject: RE: [Qemu-devel] The image size of instance VM keeps growing Stefan, Can you explain why a 64KB could be allocated for each sector write? Right now, I am testing a VM with 8G virtual

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-24 Thread Charles . Tsai-蔡清海-研究發展部
. -Original Message- From: Stefan Hajnoczi [mailto:stefa...@gmail.com] Sent: Wednesday, May 23, 2012 8:57 PM To: Charles.Tsai-蔡清海-研究發展部 Cc: qemu-devel@nongnu.org; Jonah.Wu-吳君勉-研究發展部 Subject: Re: [Qemu-devel] The image size of instance VM keeps growing On Wed, May 23, 2012 at 11:47 AM, Charles.Tsai-蔡清海

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-23 Thread Charles . Tsai-蔡清海-研究發展部
Thanks. Good alternative view. -Original Message- From: Michael Tokarev [mailto:m...@tls.msk.ru] Sent: Wednesday, May 23, 2012 9:11 PM To: Stefan Hajnoczi Cc: Charles.Tsai-蔡清海-研究發展部; Jonah.Wu-吳君勉-研究發展部; qemu-devel@nongnu.org Subject: Re: [Qemu-devel] The image size of instance VM keeps

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-23 Thread Charles . Tsai-蔡清海-研究發展部
: Wednesday, May 23, 2012 8:57 PM To: Charles.Tsai-蔡清海-研究發展部 Cc: qemu-devel@nongnu.org; Jonah.Wu-吳君勉-研究發展部 Subject: Re: [Qemu-devel] The image size of instance VM keeps growing On Wed, May 23, 2012 at 11:47 AM, Charles.Tsai-蔡清海-研究發展部 wrote: >After the VM ran for overnight, the image size

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-23 Thread nicolas prochazka
greater than default system I/O. > > > -Original Message- > From: Stefan Hajnoczi [mailto:stefa...@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 instan

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-23 Thread Michael Roth
On Mon, May 21, 2012 at 07:47:49AM +, Charles.Tsai-蔡清海-研究發展部 wrote: > > > We created a qcow2 based-image for a VM whose size is big when it is created. > When a VM is launched, it is a instance VM image which refers to the > based-image. Initially, the image size of instance VM is smaller t

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-23 Thread Michael Tokarev
On 23.05.2012 16:57, Stefan Hajnoczi wrote: [] > However, the qcow2 file should not grow much beyond its virtual disk > size. So if you find the qcow2 is 3G but the virtual disk size is 1G, > then there is a bug. But from what you've posted so far I suspect the > guest is simply writing to the di

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-23 Thread Stefan Hajnoczi
On Wed, May 23, 2012 at 11:47 AM, Charles.Tsai-蔡清海-研究發展部 wrote: >After the VM ran for overnight, the image size for the running VM grew > up to 3G bytes. What is the size of the backing file? 3G is small for a Windows guest. Any sector that is written to could cause 64 KB to be allocat

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-23 Thread 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-蔡清海-研究發展部 wrote: > We can run a tool to see if there is any active I/O or not. Does the image > size shrink back if

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-21 Thread Charles . Tsai-蔡清海-研究發展部
: [Qemu-devel] The image size of instance VM keeps growing On Mon, May 21, 2012 at 10:08 AM, Charles.Tsai-蔡清海-研究發展部 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

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-21 Thread Stefan Hajnoczi
On Mon, May 21, 2012 at 10:08 AM, Charles.Tsai-蔡清海-研究發展部 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 enti

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-21 Thread Charles . Tsai-蔡清海-研究發展部
Hajnoczi [mailto:stefa...@gmail.com] Sent: Monday, May 21, 2012 4:44 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 8:47 AM, Charles.Tsai-蔡清海-研究發展部 wrote: > Ideally, the image s

Re: [Qemu-devel] The image size of instance VM keeps growing

2012-05-21 Thread Stefan Hajnoczi
On Mon, May 21, 2012 at 8:47 AM, Charles.Tsai-蔡清海-研究發展部 wrote: > Ideally, the image size of instance VM is supposed to remain in a smaller > size than the based-image. Why does it keep growing in size which is even > bigger than that of based-image? Our VM, in fact, did nothing during the > idle s

[Qemu-devel] The image size of instance VM keeps growing

2012-05-21 Thread Charles . Tsai-蔡清海-研究發展部
We created a qcow2 based-image for a VM whose size is big when it is created. When a VM is launched, it is a instance VM image which refers to the based-image. Initially, the image size of instance VM is smaller than that of the based-mage. But we found the image size of the instance VM kept g