Change in vdsm[master]: numa: virt: optimize vpcu pid lookup

fromani at redhat.com fromani at redhat.com
Wed Jan 7 12:17:31 UTC 2015


Francesco Romani has posted comments on this change.

Change subject: numa: virt: optimize vpcu pid lookup
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.ovirt.org/#/c/36626/2/vdsm/numaUtils.py
File vdsm/numaUtils.py:

Line 24: import supervdsm
Line 25: 
Line 26: 
Line 27: def getVcpuPid(vmName):
Line 28:     runInfo = ET.parse("/var/run/libvirt/qemu/%s.xml" % vmName)
> right, but I would like to see that before we hide it and never get back to
Good point.

So I filed this bug and assigned to myself
https://bugzilla.redhat.com/show_bug.cgi?id=1179722
to track the state of the affairs.
Line 29:     vCpuPids = {}
Line 30:     for vCpuIndex, vCpu in enumerate(runInfo.findall('./vcpus/vcpu[@pid]')):
Line 31:         vCpuPids[vCpuIndex] = vCpu.get('pid')
Line 32:     return vCpuPids


-- 
To view, visit http://gerrit.ovirt.org/36626
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ice97563fc11be79cc3215db434761024b3e244dc
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Barak Azulay <bazulay at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek at redhat.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr at redhat.com>
Gerrit-Reviewer: Vitor de Lima <vdelima at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list