Roman Mohr has posted comments on this change. Change subject: sampling: Handle numa nodes with zero memory assigned ......................................................................
Patch Set 1: (1 comment) https://gerrit.ovirt.org/#/c/44121/1/vdsm/virt/sampling.py File vdsm/virt/sampling.py: Line 179: else: Line 180: memInfo = caps.getMemoryStatsByNumaCell(int(nodeIndex)) Line 181: nodeMemSample['memFree'] = memInfo['free'] Line 182: # in case the numa node has zero memory assigned, report the whole Line 183: # memory as used > nodeMemSample['memPercent'] = 100 Done Line 184: if memInfo['total'] == 0: Line 185: nodeMemSample['memPercent'] = 100 Line 186: else: Line 187: nodeMemSample['memPercent'] = 100 - \ -- To view, visit https://gerrit.ovirt.org/44121 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I6be69e715e9b4a0cc8ded744b0bcc192a466c6c8 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Roman Mohr <rm...@redhat.com> Gerrit-Reviewer: Andrej Krejcir <akrej...@redhat.com> Gerrit-Reviewer: Artyom Lukianov <aluki...@redhat.com> Gerrit-Reviewer: Dudi Maroshi <d...@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Roman Mohr <rm...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches