# Functions
CgroupScope returns the name of the scope for Nomad's managed cgroups for the given allocID and task.
ConfigureBasicCgroups will initialize a cgroup and modify config to contain a reference to its path.
CopyCpuset copies the cpuset.cpus value from source into destination.
CreateCPUSetManager creates a V1 or V2 CpusetManager depending on system configuration.
FindCgroupMountpointDir is used to find the cgroup mount point on a Linux system.
GetCgroupParent returns the mount point under the root cgroup in which Nomad will create cgroups.
No description provided by the author
GetCPUsFromCgroup gets the effective cpuset value for the given cgroup.
MaybeDisableMemorySwappiness will disable memory swappiness, if that controller is available.
NewCpusetManagerV1 creates a CpusetManager compatible with cgroups.v1.
No description provided by the author
NewGroupKiller creates a GroupKiller with executor PID pid.
SplitPath determines the parent and cgroup from p.
# Constants
CgroupRoot is hard-coded in the cgroups specification.
CreationPID is a special PID in libcontainer used to denote a cgroup should be created, but with no process added.
DefaultCgroupParentV2 is the name of Nomad's default parent cgroup, under which all other cgroups are managed.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
UseV2 indicates whether only cgroups.v2 is enabled.
# Structs
No description provided by the author
No description provided by the author
# Interfaces
CpusetManager is used to setup cpuset cgroups for each task.
GroupKiller is used for SIGKILL-ing the process tree[s] of a cgroup by leveraging the freezer cgroup subsystem.
# Type aliases
CgroupPathGetter is a function which returns the cgroup path and any error which occurred during cgroup initialization.