# Functions
AsGroup returns the group for the given absolute directory path.
No description provided by the author
GetBlkioDir returns the cgroups blkio controller directory.
GetBlkioParameters returns OCI BlockIO parameters from files in cgroups blkio controller directory.
GetBlkioThrottleBytes returns amount of bytes transferred to/from the disk.
GetCPUAcctStats retrieves CPU account statistics for a given cgroup.
GetCPUSetMemoryMigrate returns boolean indicating whether memory migration is enabled.
GetGlobalNumaStats returns the global (non-cgroup) NUMA statistics per node.
GetHugetlbUsage retrieves huge pages statistics for a given cgroup.
GetMemoryUsage retrieves cgroup memory usage.
GetMountDir returns the common mount point for cgroup v1 controllers.
GetNumaStats returns parsed cgroup NUMA statistics.
GetV2Dir() returns the cgroup v2 unified mount directory.
NewCgroupID creates a new CgroupID map/cache.
NewOciBlockIOParameters creates new OciBlockIOParameters instance.
NewOciDeviceRate creates new OciDeviceRate instance.
NewOciDeviceWeight creates new OciDeviceWeight instance.
ResetBlkioParameters adds new, changes existing and removes missing blockIO parameters in cgroupsDir.
SetBlkioParameters writes OCI BlockIO parameters to files in cgroups blkio contoller directory.
SetMountDir sets the common mount point for the cgroup v1 controllers.
SetV2Dir sets the unified cgroup v2 mount directory.
# Constants
blkio cgroup controller.
Controllers is the cgroup v2 controllers file.
cpu cgroup controller.
cpuacct cgroup controller.
CpuPeriod is the cpu controller's "cpu.cfs_period_us" entry.
CpuQuota is the cpu controller's "cpu.cfs_quota_us" entry.
cpuset cgroup controller.
CpusetCpus is the cpuset controller's cpuset.cpus entry.
CpusetMems is the cpuset controller's cpuset.mems entry.
CpuShares is the cpu controller's "cpu.shares" entry.
devices cgroup controller.
freezer cgroup controller.
hugetlb cgroup controller.
memory cgroup controller.
net_cls cgroup controller.
net_prio cgroup controller.
per_event cgroup controller.
pids cgroup controller.
Procs is cgroup's "cgroup.procs" entry.
Tasks is a cgroup's "tasks" entry.
UnkownController represents a controller of unknown type.
# Variables
KubeletRoot is the --cgroup-root option the kubelet is running with.
# Structs
BlkioDeviceBytes contains a single operations line of blkio.throttle.io_service_bytes_recursive file.
BlkioThrottleBytes has parsed contents of blkio.throttle.io_service_bytes_recursive file.
CgroupID implements mapping kernel cgroup IDs to cgroupfs paths with transparent caching.
CPUAcctUsage has a parsed line of cpuacct.usage_all file.
GlobalNumaStats has the statistics from one global NUMA nodestats file.
HugetlbUsage has parsed contents of huge pages usage in bytes.
MemoryUsage has parsed contents of memory usage in bytes.
NumaLine represents one line in the NUMA statistics file.
NumaStat has parsed contets of a NUMA statistics file.
OciBlockIOParameters contains OCI standard configuration of cgroups blkio parameters.
OciDeviceRate contains values for - blkio.throttle.read_bps_device - blkio.throttle.write_bps_device - blkio.throttle.read_iops_device - blkio.throttle.write_iops_device.
OciDeviceWeight contains values for - blkio.[io-scheduler].weight.
# Interfaces
OciDeviceParameters interface provides functions common to OciDeviceWeights and OciDeviceRates.
# Type aliases
Controller is our enumerated type for cgroup controllers.
Group represents a control group.
OciDeviceRates contains throttling rates for devices.
OciDeviceWeights contains weights for devices.