Change in vdsm[master]: numa: rename _getVcpuRuntimePinMap for clarity
fromani at redhat.com
fromani at redhat.com
Wed Jan 7 21:01:33 UTC 2015
Francesco Romani has uploaded a new change for review.
Change subject: numa: rename _getVcpuRuntimePinMap for clarity
......................................................................
numa: rename _getVcpuRuntimePinMap for clarity
rename only, no code changes.
Change-Id: Ie4baf4ac967d8063478057c5224e4fcb93e7d05c
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M vdsm/numaUtils.py
1 file changed, 7 insertions(+), 7 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/59/36659/1
diff --git a/vdsm/numaUtils.py b/vdsm/numaUtils.py
index 6370e1e..cbf7a9c 100644
--- a/vdsm/numaUtils.py
+++ b/vdsm/numaUtils.py
@@ -65,14 +65,14 @@
vmNumaNodeRuntimeMap = {}
if 'guestNumaNodes' in vm.conf:
- vCpuRuntimePinMap = _getVcpuRuntimePinMap(vm)
- if vCpuRuntimePinMap:
+ cpuVtoP = _getMappingVcpuToPcpu(vm)
+ if cpuVtoP:
vmName = vm.conf['vmName'].encode('utf-8')
vCpuToPnode = \
supervdsm.getProxy().getVcpuNumaMemoryMapping(vmName)
pNodesCpusMap = _getHostNumaNodesCpuMap()
vCpuToVnode = _getMappingVcpuToVnode(vm)
- for vCpu, pCpu in vCpuRuntimePinMap.iteritems():
+ for vCpu, pCpu in cpuVtoP.iteritems():
vNodeIndex = str(vCpuToVnode[vCpu])
if vNodeIndex not in vmNumaNodeRuntimeMap:
vmNumaNodeRuntimeMap[vNodeIndex] = []
@@ -85,14 +85,14 @@
return vmNumaNodeRuntimeMap
-def _getVcpuRuntimePinMap(vm):
- vCpuRuntimePinMap = {}
+def _getMappingVcpuToPcpu(vm):
+ cpuVtoP = {}
if vm._vmStats:
sample = vm._vmStats.sampleVcpuPinning.getLastSample()
vCpuInfos = sample if sample is not None else []
for vCpuInfo in vCpuInfos:
- vCpuRuntimePinMap[vCpuInfo[0]] = vCpuInfo[3]
- return vCpuRuntimePinMap
+ cpuVtoP[vCpuInfo[0]] = vCpuInfo[3]
+ return cpuVtoP
def _getHostNumaNodesCpuMap():
--
To view, visit http://gerrit.ovirt.org/36659
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4baf4ac967d8063478057c5224e4fcb93e7d05c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
More information about the vdsm-patches
mailing list