Vinzenz Feenstra has posted comments on this change.
Change subject: Add qemu's memory usage to VM statistics.
......................................................................
Patch Set 4: (1 inline comment)
....................................................
File vdsm/libvirtvm.py
Line 177: with open('/proc/%d/status' % (self.conf['pid'])) as f:
Line 178: for line in f:
Line 179: var, value = line.strip().split()[0:2]
Line 180: if var in ('VmSize:', 'VmRSS:', 'VmData:'):
Line 181: memUsage[var[:-1]] = long(value)
ShaoHe: Honestly I don't understand what exactly you're asking him to change?
The case of the unit symbol is handled via the split command if this answers
your question.
Line 182: return memUsage
Line 183:
Line 184: def _diff(self, prev, curr, val):
Line 185: return prev[val] - curr[val]
--
To view, visit http://gerrit.ovirt.org/9006
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ibeb35759454c4a9b41e1303956267e93ca3545a0
Gerrit-PatchSet: 4
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Gal Hammer <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Gal Hammer <[email protected]>
Gerrit-Reviewer: Mark Wu <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Royce Lv <[email protected]>
Gerrit-Reviewer: ShaoHe Feng <[email protected]>
Gerrit-Reviewer: Vinzenz Feenstra <[email protected]>
Gerrit-Reviewer: Zhou Zheng Sheng <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches