Bug 863115
Summary: | libvirt calls 'qemu-kvm -help' too often | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Eric Blake <eblake> |
Component: | libvirt | Assignee: | Eric Blake <eblake> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4 | CC: | acathrow, dallan, dyasny, dyuan, eblake, honzhang, mzhan, rwu, whuang, ydu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.2-3.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause: Libvirt was calling 'qemu-kvm -help' every time it started a guest, to learn what features qemu has available for use.
Consequence: On a machine with lots of guests, this led to noticeable delays in starting all of the guests.
Fix: Libvirt now caches information about qemu as long as qemu's timestamp is unchanged.
Result: Reusing information allows libvirt to be faster when starting lots of guests.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 07:25:42 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Eric Blake
2012-10-04 13:12:29 UTC
Verify it as follows.The result is expected. So move its status to VERIFIED. 1.# rpm -q libvirt qemu-kvm libvirt-0.10.2-3.el6.x86_64 qemu-kvm-0.12.1.2-2.322.el6.x86_64 2.Start two guests. # virsh list Id Name State ---------------------------------------------------- 1 rhel6.3 running 2 rhel6.3-new running 3.Check debug log , the qemu-kvm -help only be executed once. vim /var/log/libvirt/qemu/rhel6.3.log 2012-10-16 08:56:02.469+0000: 20566: debug : virCommandRunAsync:2209 : About to run LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin /usr/libexec/qemu-kvm -help (In reply to comment #4) > Verify it as follows.The result is expected. So move its status to VERIFIED. > > 1.# rpm -q libvirt qemu-kvm > libvirt-0.10.2-3.el6.x86_64 > qemu-kvm-0.12.1.2-2.322.el6.x86_64 > > 2.Start two guests. > # virsh list > Id Name State > ---------------------------------------------------- > 1 rhel6.3 running > 2 rhel6.3-new running > > > 3.Check debug log , the qemu-kvm -help only be executed once. vim /var/log/libvirt/libvirtd.log 2012-10-16 08:56:02.469+0000: 20566: debug : virCommandRunAsync:2209 : About to run LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin /usr/libexec/qemu-kvm -help Fix a typo as above . Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0276.html |