Bug 833398
Summary: | [RFE][nova][preformance] qemu-img info command is executed twice within the same second every 63 seconds for each running instance | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | David Naori <dnaori> | ||||
Component: | openstack-nova | Assignee: | Xavier Queralt <xqueralt> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Dafna Ron <dron> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 1.0 (Essex) | CC: | abaron, apevec, dallan, dron, jkt, markmc, ndipanov, sgordon, vpopovic | ||||
Target Milestone: | Upstream M3 | Keywords: | CodeChange, FutureFeature, MoveUpstream, Triaged | ||||
Target Release: | 5.0 (RHEL 7) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | storage | ||||||
Fixed In Version: | Doc Type: | Enhancement | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-03-10 13:59:01 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: | |||||||
Attachments: |
|
Description
David Naori
2012-06-19 12:13:14 UTC
Period is 63 seconds, while cache manager shoud be every image_cache_manager_interval * periodic_interval = 40 * 60 = 40 mins Created attachment 592930 [details]
compute.log
Note to disable the cache manager set image_cache_manager_interval = 0 That's overkill though, especially considering bug 837627 So this is coming from: ComputeManager.update_available_resource() # runs every 60s libvirt.connection.update_available_resource() get_disk_available_least() for instance in instances: get_instance_disk_info(instance) if qcow2: virt_size = execute('qemu-img', 'info')... backing_file = libvirt_utils.get_disk_backing_file() backing file = execute('qemu-img', 'info')... The backing file is not needed in the above. Also the virtual size should not be changing and could be cached. Note: nova executes 'qemu-img info' twice every 60 seconds for every disk file on each instance. in 4 out of 5 of the default flavors instances has Ephemeral disk too. So actually in most cases it will run 4 times for each instance every 60 seconds which makes it a bigger issue. 2012-07-19 02:49:12 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /mnt/nova-lib//instances/instance-0000016b/disk from (pid=7273) execute /usr/lib/python2.6/site-packages/nova/utils.py:220 2012-07-19 02:49:12 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /mnt/nova-lib//instances/instance-0000016b/disk from (pid=7273) execute /usr/lib/python2.6/site-packages/nova/utils.py:220 2012-07-19 02:49:13 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /mnt/nova-lib//instances/instance-0000016b/disk.local from (pid=7273) execute /usr/lib/python2.6/site-packages/nova/utils.py:220 2012-07-19 02:49:13 DEBUG nova.utils [-] Running cmd (subprocess): qemu-img info /mnt/nova-lib//instances/instance-0000016b/disk.local from (pid=7273) execute /usr/lib/python2.6/site-packages/nova/utils.py:220 Targetting it to Grizzly (RHOS-3.0) as there seems to be very little incentive to backport such an enhancement. There is an upstream bug for this so I am linking it. It seems it is not being worked on upstream ATM - but seems like a nice improvement to have. A lot of the code has been changed since this bug was reported - but the gist of the problem is still there. I will comment more on the upstream bug. Moving to 5.0. For any further follow up on this issue, please refer to the upstream bug linked to this bug. |