Commit Graph

17 Commits

Author SHA1 Message Date
Katarzyna Kujawa
22a367d96f Fix typos related to NVMinfo struct and GetMachineMemoryByType function
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-03-19 09:29:09 +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
Ted Yu
29824ab110 Simplify getNodeIdFromCpuBus 2020-02-24 11:28:49 -08:00
Mario
b1d569a9f1
Update machine.go 2020-01-13 19:43:40 +08:00
Mario
9b35cba5d6
Ignore CPU clock for mips64 2020-01-13 19:07:32 +08:00
Carlos de Paula
77aef51a9b Ignore CPU clock for riscv64 2020-01-07 17:00:26 -03: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
95453fe0aa
Update machine/machine.go
Co-Authored-By: Odin Ugedal <odin@ugedal.com>
2019-10-04 15:49:22 +09:00
sewon.oh
cb3a2bef46
Remove duplicated logic
Signed-off-by: sewon.oh <sewon.oh@samsung.com>
2019-10-04 14:31:01 +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
5fe243eca8 Bug fix if no NUMA support in kernel
Signed-off-by: Bin Lu <bin.lu@arm.com>
2018-12-14 01:56:05 -08:00
David Ashpole
8b1337898f
Merge pull request #2114 from lubinszARM/cpuinfo
Fix bug:getTopology will be failed on Arm platform
2018-12-05 17:29:52 -08: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
Davanum Srinivas
4da6d809be
Move from glog to klog
Change-Id: Ic92f57c2d7f268d8d985797974883c1a537d6993
2018-11-08 18:06:28 -05:00
Tobias Klauser
24493b8458 Simplify Utsname string conversion
Use Utsname from golang.org/x/sys/unix which contains byte array
instead of int8/uint8 array members. This allows to simplify the string
conversions of these members.
2017-10-31 12:14:10 +01:00
Tim St. Clair
4d3ef349fb Move utils/machine -> machine 2016-05-02 15:56:49 -07:00