Documentation ¶
Index ¶
- func GetBlockDeviceInfo(sysfs sysfs.SysFs) (map[string]info.DiskInfo, error)
- func GetCacheInfo(sysFs sysfs.SysFs, id int) ([]sysfs.CacheInfo, error)
- func GetHugePagesInfo(sysFs sysfs.SysFs, hugepagesDirectory string) ([]info.HugePagesInfo, error)
- func GetNetworkDevices(sysfs sysfs.SysFs) ([]info.NetInfo, error)
- func GetNodesInfo(sysFs sysfs.SysFs) ([]info.Node, int, error)
- func GetOnlineCPUs(topology []info.Node) []int
- func GetSocketFromCPU(topology []info.Node, cpu int) int
- func GetSystemUUID(sysFs sysfs.SysFs) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockDeviceInfo ¶
Get information about block devices present on the system. Uses the passed in system interface to retrieve the low level OS information.
func GetCacheInfo ¶
GetCacheInfo return information about a cache accessible from the given cpu thread
func GetHugePagesInfo ¶ added in v0.37.0
GetHugePagesInfo returns information about pre-allocated huge pages hugepagesDirectory should be top directory of hugepages Such as: /sys/kernel/mm/hugepages/
func GetNetworkDevices ¶
Get information about network devices present on the system.
func GetNodesInfo ¶ added in v0.37.0
GetNodesInfo returns information about NUMA nodes and their topology
func GetOnlineCPUs ¶ added in v0.38.0
GetOnlineCPUs returns available cores.
func GetSocketFromCPU ¶ added in v0.37.0
GetSocketFromCPU returns Socket ID of passed CPU. If is not present, returns -1.
Types ¶
This section is empty.