Commit Graph

8 Commits

Author SHA1 Message Date
Katarzyna Kujawa
c5a9232a94 Modify GetTopology to read information only from sysfs
* Move sysfs related functions needed to get nodes' information and tests into utils/sysfs
* Add tests for sysfs related functions

Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-03-17 08:44:58 +01:00
iwankgb
a8de0e0fff
Nvm and dimm information (#2415)
* Adding information about memory capacity and number of memory DIMMs by memory type

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-03-06 11:56:13 -08:00
Katarzyna Kujawa
a5890578dd Extending machine API by number of cpu physical cores and cpu sockets
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-03-03 09:51:31 +01:00
zhsj
31a5e4f095
Skip TestTopology on non-amd64 (#2391)
* Skip TestTopology tests on unsupported platforms
2020-02-11 08:59:17 -08:00
sewon.oh
255729d1ae
Add comments and unit tests for GetHugePagesInfo()
Signed-off-by: sewon.oh <sewon.oh@samsung.com>
2019-10-07 11:15:00 +09:00
sewon.oh
d138b59aa2
Add hugepage info to v1 node structure
Signed-off-by: sewon.oh <sewon.oh@samsung.com>
2019-09-05 15:12:13 +09:00
Bin Lu
2e0d48f16a Fix bug:getTopology will be failed on Arm platform
On Arm platform, no 'core id' and 'physical id' in '/proc/cpuinfo'.
So we should search sysfs cpu path directly to get the data of
'thread_id' &'core_id' & 'node_id'.
This method can also be used on other platforms, such as x86, ppc64le...
/sys/bus/cpu/devices/cpu%d contains the information of 'core_id' & 'node_id'.
Such as:
cat /sys/bus/cpu/devices/cpu0/topology/core_id
ls /sys/bus/cpu/devices/cpu0/node0

Signed-off-by: Bin Lu <bin.lu@arm.com>
2018-12-05 11:15:07 +08:00
Tim St. Clair
4d3ef349fb Move utils/machine -> machine 2016-05-02 15:56:49 -07:00