All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 597402] [NEW] qemu does not call unlink() on temp files in snapshot mode
@ 2010-06-22 19:30 Michael Roth
  2010-10-01 18:14 ` [Qemu-devel] [Bug 597402] " blueswirl
  2011-02-20 17:13 ` Aurelien Jarno
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Roth @ 2010-06-22 19:30 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

== overview ==

When booting guests in snapshot mode qemu never calls unlink()
on the files storing changes to the images. This results in large amounts of
disk space being used over time.

This bug seems to have been introduced by qemu git commit
b6ce07aa83bdee3cfd2610f270a0ce304e78df95

== steps to reproduce ==

1) Boot a guest like so:

qemu -m 512 -drive
file=/scratch/images/mdroth/rhel54_64_base.raw,snapshot=on

== actual results ==

/tmp/vl.* files are created and never unlinked/deleted. for example:

mdroth@illuin:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 -m 512 -drive file=/media/secondary/vm/fc12_64_base.raw,snapshot=on &
[1] 24080

mdroth@illuin:~/dev/kvm/qemu-build$ ls -l /tmp/vl*
-rw------- 1 mdroth mdroth 262144 2010-06-22 14:21 /tmp/vl.tFSAmR

mdroth@illuin:~/dev/kvm/qemu-build$ fuser /tmp/vl*
/tmp/vl.tFSAmR:      24080

== expected results ==

temporary files should immediately be unlink()'ed and not be present in the file
listing.

== system details ==

mdroth@illuin:~/dev/kvm/qemu-build$ uname -a
Linux illuin 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux

latest commit (cada87c432e3b9cd55869a24055baf2b7bc0b70c) from qemu.git
master branch:

mdroth@illuin:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 --version
QEMU emulator version 0.12.50, Copyright (c) 2003-2008 Fabrice Bellard

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
qemu does not call unlink() on temp files in snapshot mode
https://bugs.launchpad.net/bugs/597402
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
== overview ==

When booting guests in snapshot mode qemu never calls unlink()
on the files storing changes to the images. This results in large amounts of
disk space being used over time.

This bug seems to have been introduced by qemu git commit b6ce07aa83bdee3cfd2610f270a0ce304e78df95

== steps to reproduce ==

1) Boot a guest like so:

qemu -m 512 -drive
file=/scratch/images/mdroth/rhel54_64_base.raw,snapshot=on

== actual results ==

/tmp/vl.* files are created and never unlinked/deleted. for example:

mdroth@illuin:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 -m 512 -drive file=/media/secondary/vm/fc12_64_base.raw,snapshot=on &
[1] 24080

mdroth@illuin:~/dev/kvm/qemu-build$ ls -l /tmp/vl*
-rw------- 1 mdroth mdroth 262144 2010-06-22 14:21 /tmp/vl.tFSAmR

mdroth@illuin:~/dev/kvm/qemu-build$ fuser /tmp/vl*
/tmp/vl.tFSAmR:      24080

== expected results ==

temporary files should immediately be unlink()'ed and not be present in the file
listing.

== system details ==

mdroth@illuin:~/dev/kvm/qemu-build$ uname -a
Linux illuin 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux

latest commit (cada87c432e3b9cd55869a24055baf2b7bc0b70c) from qemu.git master branch:

mdroth@illuin:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 --version
QEMU emulator version 0.12.50, Copyright (c) 2003-2008 Fabrice Bellard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [Bug 597402] Re: qemu does not call unlink() on temp files in snapshot mode
  2010-06-22 19:30 [Qemu-devel] [Bug 597402] [NEW] qemu does not call unlink() on temp files in snapshot mode Michael Roth
@ 2010-10-01 18:14 ` blueswirl
  2011-02-20 17:13 ` Aurelien Jarno
  1 sibling, 0 replies; 3+ messages in thread
From: blueswirl @ 2010-10-01 18:14 UTC (permalink / raw)
  To: qemu-devel

Does not seem to happen anymore:

strace -etrace=unlink -esignal= -f ./qemu -drive file=/dev/null,snapshot=on
unlink("/tmp/vl.jUbLWz")                = 0


** Changed in: qemu
       Status: New => Fix Committed

-- 
qemu does not call unlink() on temp files in snapshot mode
https://bugs.launchpad.net/bugs/597402
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Fix Committed

Bug description:
== overview ==

When booting guests in snapshot mode qemu never calls unlink()
on the files storing changes to the images. This results in large amounts of
disk space being used over time.

This bug seems to have been introduced by qemu git commit b6ce07aa83bdee3cfd2610f270a0ce304e78df95

== steps to reproduce ==

1) Boot a guest like so:

qemu -m 512 -drive
file=/scratch/images/mdroth/rhel54_64_base.raw,snapshot=on

== actual results ==

/tmp/vl.* files are created and never unlinked/deleted. for example:

mdroth@illuin:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 -m 512 -drive file=/media/secondary/vm/fc12_64_base.raw,snapshot=on &
[1] 24080

mdroth@illuin:~/dev/kvm/qemu-build$ ls -l /tmp/vl*
-rw------- 1 mdroth mdroth 262144 2010-06-22 14:21 /tmp/vl.tFSAmR

mdroth@illuin:~/dev/kvm/qemu-build$ fuser /tmp/vl*
/tmp/vl.tFSAmR:      24080

== expected results ==

temporary files should immediately be unlink()'ed and not be present in the file
listing.

== system details ==

mdroth@illuin:~/dev/kvm/qemu-build$ uname -a
Linux illuin 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux

latest commit (cada87c432e3b9cd55869a24055baf2b7bc0b70c) from qemu.git master branch:

mdroth@illuin:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 --version
QEMU emulator version 0.12.50, Copyright (c) 2003-2008 Fabrice Bellard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [Bug 597402] Re: qemu does not call unlink() on temp files in snapshot mode
  2010-06-22 19:30 [Qemu-devel] [Bug 597402] [NEW] qemu does not call unlink() on temp files in snapshot mode Michael Roth
  2010-10-01 18:14 ` [Qemu-devel] [Bug 597402] " blueswirl
@ 2011-02-20 17:13 ` Aurelien Jarno
  1 sibling, 0 replies; 3+ messages in thread
From: Aurelien Jarno @ 2011-02-20 17:13 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/597402

Title:
  qemu does not call unlink() on temp files in snapshot mode

Status in QEMU:
  Fix Released

Bug description:
  == overview ==

  When booting guests in snapshot mode qemu never calls unlink()
  on the files storing changes to the images. This results in large amounts of
  disk space being used over time.

  This bug seems to have been introduced by qemu git commit
  b6ce07aa83bdee3cfd2610f270a0ce304e78df95

  == steps to reproduce ==

  1) Boot a guest like so:

  qemu -m 512 -drive
  file=/scratch/images/mdroth/rhel54_64_base.raw,snapshot=on

  == actual results ==

  /tmp/vl.* files are created and never unlinked/deleted. for example:

  mdroth@illuin:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 -m 512 -drive file=/media/secondary/vm/fc12_64_base.raw,snapshot=on &
  [1] 24080

  mdroth@illuin:~/dev/kvm/qemu-build$ ls -l /tmp/vl*
  -rw------- 1 mdroth mdroth 262144 2010-06-22 14:21 /tmp/vl.tFSAmR

  mdroth@illuin:~/dev/kvm/qemu-build$ fuser /tmp/vl*
  /tmp/vl.tFSAmR:      24080

  == expected results ==

  temporary files should immediately be unlink()'ed and not be present in the file
  listing.

  == system details ==

  mdroth@illuin:~/dev/kvm/qemu-build$ uname -a
  Linux illuin 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux

  latest commit (cada87c432e3b9cd55869a24055baf2b7bc0b70c) from qemu.git
  master branch:

  mdroth@illuin:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 --version
  QEMU emulator version 0.12.50, Copyright (c) 2003-2008 Fabrice Bellard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-20 17:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-22 19:30 [Qemu-devel] [Bug 597402] [NEW] qemu does not call unlink() on temp files in snapshot mode Michael Roth
2010-10-01 18:14 ` [Qemu-devel] [Bug 597402] " blueswirl
2011-02-20 17:13 ` Aurelien Jarno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.