[Bug 588293] Re: Memory leak

Serge Hallyn serge.hallyn at ubuntu.com
Tue Jun 15 17:19:16 BST 2010


** Description changed:

  Binary package hint: qemu-kvm
  
  Ubuntu release: 10.04 LTS
  Package version: 0.12.3+noroms-0ubuntu9
  
  There seems to be a huge memory leak in qemu/kvm 0.12.3. After a while,
  a virtual machine is using much more memory on the host system, than
  actually is in use on the guest system. A guest system with only 512 MB
  assigned, can even use multiple GB's of memory.
  
  This bug is also discussed here:
  http://sourceforge.net/tracker/?func=detail&atid=893831&aid=2989366&group_id=180599
  
  Would it be possible to fix this bug in Ubuntu? It makes KVM a bit
  useless currently, because running 2 GB of VM's can even cost 16 GB of
  memory.
+ 
+ ============
+ Impact: A memory leak causes long-running (measured in only a few days)
+ kvm sessions to invoke the OOM killer.  This makes many kvm or cloud
+ applications impossible.
+ 
+ The issue is addressed with upstream patch with commit-id 
+ 7eb58a6c556c3880e6712cbf6d24d681261c5095.  A back-port of the
+ patch is attached, and can be seen in
+ https://code.edge.launchpad.net/~serge-hallyn/ubuntu/lucid/qemu-kvm/memleak-fix2/
+ 
+ To reproduce: simply start a kvm instance, ensure that aio is being
+ used, and let it run.
+ 
+ Regression potential: the patch simply ensured that already-allocated
+ memory is freed in an error path which otherwise lets that memory leak.
+ ============

-- 
Memory leak
https://bugs.launchpad.net/bugs/588293
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.



More information about the Ubuntu-server-bugs mailing list