libvirtd is leaking file descriptors to /var/log/libvirt/qemu/<vmid>.log
Bug #438815 reported by
Daniel Nurmi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eucalyptus (Ubuntu) |
Invalid
|
Medium
|
Dustin Kirkland | ||
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
It looks like the libvirtd daemon is leaking file descriptors to the logfile that it sets up for each VM. I've attached a typescript showing the symptom (start vm, inspect lsof, stop vm, inspect lsof, start vm, inspect lsof, stop vm, inspect lsof), note that the descriptors referring to the VM logfiles are never closed. After a thousand or so VMs, the daemon stops accepting new VM creation events until libvirtd is restarted.
Related branches
Changed in libvirt (Ubuntu): | |
importance: | Undecided → Medium |
Changed in eucalyptus (Ubuntu): | |
importance: | Undecided → Medium |
Changed in libvirt (Ubuntu): | |
status: | New → Triaged |
Changed in libvirt (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in eucalyptus (Ubuntu): | |
assignee: | nobody → Dustin Kirkland (kirkland) |
status: | New → In Progress |
Changed in eucalyptus (Ubuntu): | |
status: | In Progress → Invalid |
To post a comment you must log in.
I think I found a fix in upstream git:
commit 32456779a1e9385 4631cc8da930c07 7d04b56660
Author: Ryota Ozaki <email address hidden>
Date: Thu Sep 10 11:34:14 2009 +0200
Close logfile fd after spawning qemu
* src/qemu_driver.c: avoid a leak of file descriptor when exec'ing qemu