Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCPUSetMemoryMigrate ¶
GetCPUSetMemoryMigrate returns boolean indicating whether memory migration is enabled.
func GetGlobalNumaStats ¶
func GetGlobalNumaStats() (map[int]GlobalNumaStats, error)
GetGlobalNumaStats returns the global (non-cgroup) NUMA statistics per node.
Types ¶
type BlkioDeviceBytes ¶
BlkioDeviceBytes contains a single operations line of blkio.throttle.io_service_bytes_recursive file
type BlkioThrottleBytes ¶
type BlkioThrottleBytes struct { DeviceBytes []*BlkioDeviceBytes TotalBytes int64 }
BlkioThrottleBytes has parsed contents of blkio.throttle.io_service_bytes_recursive file
func GetBlkioThrottleBytes ¶
func GetBlkioThrottleBytes(cgroupPath string) (BlkioThrottleBytes, error)
GetBlkioThrottleBytes returns amount of bytes transferred to/from the disk.
type CPUAcctUsage ¶
CPUAcctUsage has a parsed line of cpuacct.usage_all file
func GetCPUAcctStats ¶
func GetCPUAcctStats(cgroupPath string) ([]CPUAcctUsage, error)
GetCPUAcctStats retrieves CPU account statistics for a given cgroup.
type CgroupID ¶
CgroupID implements mapping kernel cgroup IDs to cgroupfs paths with transparent caching.
func NewCgroupID ¶
NewCgroupID creates a new CgroupID map/cache.
type GlobalNumaStats ¶
type GlobalNumaStats struct { NumaHit int64 NumaMiss int64 NumaForeign int64 InterleaveHit int64 LocalNode int64 OtherNode int64 }
GlobalNumaStats has the statistics from one global NUMA nodestats file.
type HugetlbUsage ¶
HugetlbUsage has parsed contents of huge pages usage in bytes.
func GetHugetlbUsage ¶
func GetHugetlbUsage(cgroupPath string) ([]HugetlbUsage, error)
GetHugetlbUsage retrieves huge pages statistics for a given cgroup.
type MemoryUsage ¶
MemoryUsage has parsed contents of memory usage in bytes.
func GetMemoryUsage ¶
func GetMemoryUsage(cgroupPath string) (MemoryUsage, error)
GetMemoryUsage retrieves cgroup memory usage.
type NumaStat ¶
type NumaStat struct { Total NumaLine File NumaLine Anon NumaLine Unevictable NumaLine HierarchicalTotal NumaLine HierarchicalFile NumaLine HierarchicalAnon NumaLine HierarchicalUnevictable NumaLine }
NumaStat has parsed contets of a NUMA statistics file.
func GetNumaStats ¶
GetNumaStats returns parsed cgroup NUMA statistics.