memory leak

Bug #591610 reported by Chris Jones
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
KVM
Unknown
Unknown
qemu-kvm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kvm

I installed a minimal ubuntu 10.04 system on an 8GB Core i7 (quad core) motherboard with a couple of TB seagate disks in RAID1.

I stated 4 KVM VMs (created with ubuntu-vm-builder), two using virtio, two not and left spew(1) running in --read-and-write mode overnight as a stress test.

This morning I found 3 out of the 4 VMs had been killed by OOM.

Related branches

Revision history for this message
Chris Jones (cmsj) wrote :
Revision history for this message
Chris Jones (cmsj) wrote :

I've linked this bug to an upstream bug filed against 0.12.3 (the version of KVM we have in Lucid) which describes a serious memory leak. I am also repeating the test with 0.12.4 which claims to fix the leak.

Revision history for this message
Dave Walker (davewalker) wrote :

According to the upstream bug report, this is fixed in version 0.12.4 however I am unsure of the exact commit that resolved it. Although I haven't encountered this issue yet, i'm going to mark it as triaged as upstream, have essentially confirmed it with the version we ship.

Changed in kvm (Ubuntu):
status: New → Triaged
Revision history for this message
Chris Jones (cmsj) wrote :

As I mentioned in comment #2, I re-ran my test with 0.12.4 (a simple rebuild of the package from sid) and after almost 12 hours there was no sign of memory leaking.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Chris-

Do you think this is a dupe of Bug #588293? There's a patch attached to that one. Serge is going to apply that patch, and put up a package for testing, and we'll try to get it SRU'd to Lucid.

affects: kvm (Ubuntu) → qemu-kvm (Ubuntu)
Revision history for this message
Chris Jones (cmsj) wrote :

Dustin: It's certainly possible. It was easy enough to reproduce this bug - I just ran one VM per CPU core, doing constant IO stress for about 8 hours and it entirely consumed the 8GB in the machine, so when that's SRU'd we can test to see if it's fixed :)

Revision history for this message
Chris Jones (cmsj) wrote :

I ran my test again overnight with the packages from -proposed and it's not fixed the leak for me

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 591610] Re: memory leak

Hrm, okay, thanks Chris.

Is this VM managed by libvirt? Is it possible the memory leak is in
libvirt, rather than kvm?

Revision history for this message
Chris Jones (cmsj) wrote :

Dustin: yep, managed by libvirt.
I'm pretty sure the leak is kvm and not libvirt - the one remaining kvm process this morning had a VIRT of ~7GB.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Chris, could you confirm whether this is in fact fixed in
lucid-proposed?

Revision history for this message
Chris Jones (cmsj) wrote :

Serge: Yep, per the other bug, this is totally fixed for me.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Note: I deleted the proposal for merge for
https://code.launchpad.net/~serge-hallyn/ubuntu/lucid/qemu-kvm/memleak-fix
because it is already in lucid-proposed.

Changed in qemu-kvm (Ubuntu):
status: Triaged → Fix Committed
Changed in qemu-kvm (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.