[SRU] multipath + libvirtd eats away more memory over time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Debian) |
Fix Released
|
Unknown
|
|||
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Lucid |
Fix Released
|
Medium
|
Dustin Kirkland | ||
multipath-tools (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
libvirtd fills the memory, until the libvirtd process gets killed. This happens over a long time.
- This server (info by ubuntu-bug) has 4GB of memory and an uptime of 27 days. Some KVM machines have been active during that period. The last 4 days before the crash, no virtual machine was running on the server, but libvirtd slowly filled memory.
- Another server has 32 GB of memory and active virtual machines. It took a few weeks more until memory was completely filled.
Steps to reproduce:
- Start libvirtd
- Wait a long time
ProblemType: Bug
Architecture: amd64
Date: Wed Apr 28 08:43:52 2010
DistroRelease: Ubuntu 9.10
Package: libvirt-bin 0.7.0-1ubuntu13.1
ProcEnviron:
LANG=C
SHELL=/bin/bash
ProcVersionSign
SourcePackage: libvirt
Uname: Linux 2.6.31-20-server x86_64
======
SRU:
* IMPACT: If affected, libvirtd will eventually leak all memory, and OOM the system.
* ADDRESSED: Applied patch solves two memory leaks by freeing memory on function exit conditions.
* PATCH: As attached from Nigel Jones below. He has also submitted this upstream as well.
* TEST CASE: In some cases, you can reproduce this issue by running "top -p $(pidof libvirtd)" in one window, watching RES memory usage increase, while running "while true; do sudo multipath -F; sudo multipath -v4; done" in another window. Due to a race condition (see Bug: #585027), this will sometimes not reproduce the issue by itself. In these cases, you can "simulate" the race condition by "sudo dmsetup remove <string>", and then running the commands above.
* REGRESSION POTENTIAL: Patch is pretty simple, clean. Regression potential should be minimal.
======
Changed in libvirt (Ubuntu Lucid): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in libvirt (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in libvirt (Ubuntu Lucid): | |
milestone: | none → lucid-updates |
summary: |
- multipath + libvirtd eats away more memory over time + [SRU] multipath + libvirtd eats away more memory over time |
tags: | added: patch |
description: | updated |
Changed in libvirt (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in libvirt (Ubuntu Lucid): | |
status: | In Progress → Fix Committed |
Changed in libvirt (Debian): | |
status: | Unknown → New |
Changed in libvirt (Debian): | |
status: | New → Fix Released |
Changed in libvirt (Ubuntu Lucid): | |
status: | Fix Released → Triaged |
Changed in libvirt (Ubuntu Lucid): | |
assignee: | Dustin Kirkland (kirkland) → nobody |
Changed in libvirt (Ubuntu): | |
assignee: | Dustin Kirkland (kirkland) → nobody |
tags: |
added: verification-done removed: verification-needed |
tags: | added: testcase |
Attaching dmesg for more information