diff --git a/runtime-config-linux.md b/runtime-config-linux.md index b9d633c87..76ce4a826 100644 --- a/runtime-config-linux.md +++ b/runtime-config-linux.md @@ -141,7 +141,7 @@ The following parameters can be specified: ## Control groups Also known as cgroups, they are used to restrict resource usage for a container and handle device access. -cgroups provide controls to restrict cpu, memory, IO, pids and network for the container. +cgroups provide controls to restrict cpu, memory, IO, pids, network and intel_rdt for the container. For more information, see the [kernel cgroups documentation](https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt). The path to the cgroups can be specified in the Spec via `cgroupsPath`. diff --git a/runtime_config_linux.go b/runtime_config_linux.go index 7673e693e..f80924e96 100644 --- a/runtime_config_linux.go +++ b/runtime_config_linux.go @@ -198,6 +198,12 @@ type Network struct { Priorities []InterfacePriority `json:"priorities"` } +// IntelRdt for Linux cgroup 'intel_rdt' resource management +type IntelRdt struct { + // L3 cache allocation CBM (cache bit mask) for container + L3Cbm string `json:"l3Cbm"` +} + // Resources has container runtime resource constraints type Resources struct { // DisableOOMKiller disables the OOM killer for out of memory conditions @@ -216,6 +222,8 @@ type Resources struct { HugepageLimits []HugepageLimit `json:"hugepageLimits"` // Network restriction configuration Network Network `json:"network"` + // IntelRdt restriction configuration + IntelRdt IntelRdt `json:"intelRdt"` } // Device represents the information on a Linux special device file