iovec array memory leak
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu-kvm (Ubuntu) |
Fix Released
|
Medium
|
Serge Hallyn | ||
Lucid |
Fix Released
|
Medium
|
Serge Hallyn | ||
Maverick |
Fix Released
|
Medium
|
Serge Hallyn |
Bug Description
Binary package hint: qemu-kvm
Ubuntu release: 10.04 LTS
Package version: 0.12.3+
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://
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
7eb58a6c556c388
patch is attached, and can be seen in
https:/
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.
============
Related branches
- Ubuntu Sponsors: Pending requested
-
Diff: 123 lines (+87/-0)5 files modifieddebian/changelog (+15/-0)
debian/patches/block-Fix-multiwrite-memory-leak-in-error-case.patch (+30/-0)
debian/patches/block-Free-iovec-arrays-allocated-by-multiwrite_merge (+29/-0)
debian/patches/series (+2/-0)
debian/rules (+11/-0)
description: | updated |
summary: |
- Memory leak + Memory leak in qemu |
summary: |
- Memory leak in qemu + iovec array memory leak |
tags: |
added: verification-done removed: verification-needed |
Could you outline what type of guest are causing the leak? What are the guest doing?