Dan Kenigsberg has submitted this change and it was merged.

Change subject: sampling: Collect numa related statistics
......................................................................


sampling: Collect numa related statistics

This patch modifies the HostStatsThread in sampling module to add
function of collect host numa related statistics data.
It will add two keys in the rpc response of getVdsStats whose value
are the host's numa related statistics information.
Key cpuStatistics, the value is a map, each item follows this format:
{'cpuCoreId':{'nodeIndex':int, 'cpuIdle':'str', 'cpuSys':'str',
              'cpuUser':'str'}}
cpuCoreId      - The id of this cpu core
nodeIndex      - The numa node index that this cpu core belongs
cpuIdle        - The idle percentage of this cpu core
cpuUser        - The user consumed percentage of this cpu core
cpuSys         - The system consumed percentage of this cpu core
Key numaNodeMemFree, the value is a map, each item follows this
format:
{'nodeIndex':{'memFree':str, 'memPercent':int}}
nodeIndex      - The index of numa node
memFree        - The free memory of this numa node in MB
memPercent     - The used memory percentage of this numa node

Change-Id: Ib8d2edd74b8b5d5d3d3e508afc3f675037a86597
Bug-Url: https://bugzilla.redhat.com/1069303
Signed-off-by: Bruce Shi <[email protected]>
Reviewed-on: http://gerrit.ovirt.org/26876
Reviewed-by: Francesco Romani <[email protected]>
Reviewed-by: Dan Kenigsberg <[email protected]>
---
M vdsm/virt/sampling.py
M vdsm_api/vdsmapi-schema.json
2 files changed, 144 insertions(+), 1 deletion(-)

Approvals:
  Dan Kenigsberg: Looks good to me, approved
  Francesco Romani: Looks good to me, but someone else must approve
  Xiaolei Shi: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib8d2edd74b8b5d5d3d3e508afc3f675037a86597
Gerrit-PatchSet: 7
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Xiaolei Shi <[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
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to