Dan Kenigsberg has posted comments on this change.

Change subject: caps: Repair collect numa information
......................................................................


Patch Set 6: Code-Review+2

(1 comment)

http://gerrit.ovirt.org/#/c/27090/6/vdsm/caps.py
File vdsm/caps.py:

Line 219:     memDict = {}
Line 220:     memInfo = utils.readMemInfo()
Line 221:     memDict['total'] = str(memInfo['MemTotal'] / 1024)
Line 222:     memDict['free'] = str(memInfo['MemFree'] / 1024)
Line 223:     return memDict
> minor nit:
Francesco, thanks for your review.

Both these issues already exist in accepted code (Cf. 
_getMemoryStatsByNumaCell), and as such - should be treated in a separate patch.

Since memInfo['MemTotal'] is in KiB, I do not think that there is a real-life 
rounding issue (I have not seen a memory chip that is not a multiple of MiB for 
several decades), and rounding down is slightly better than rounding up, anyway.
Line 224: 
Line 225: 
Line 226: @utils.memoized
Line 227: def _getNumaNodeDistance():


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ifb70231c81e75d29107f4ea89367aa33d8e85bad
Gerrit-PatchSet: 6
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Xiaolei Shi <[email protected]>
Gerrit-Reviewer: Adam Litke <[email protected]>
Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Martin Sivák <[email protected]>
Gerrit-Reviewer: Xiaolei Shi <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to