Skip to content

Commit ab5ee2a

Browse files
committed
specs: linux: add intel_rdt cgroup support in specs
Add support for the intel_rdt cgroup resource in Linux-specific runtime configuration to support runtime.json. The intel_rdt cgroup subsystem will be available in Linux 4.6 (or later). Signed-off-by: Xiaochen Shen <[email protected]>
1 parent 56b8875 commit ab5ee2a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

runtime-config-linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ The following parameters can be specified:
141141
## Control groups
142142

143143
Also known as cgroups, they are used to restrict resource usage for a container and handle device access.
144-
cgroups provide controls to restrict cpu, memory, IO, pids and network for the container.
144+
cgroups provide controls to restrict cpu, memory, IO, pids, network and intel_rdt for the container.
145145
For more information, see the [kernel cgroups documentation](https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt).
146146

147147
The path to the cgroups can be specified in the Spec via `cgroupsPath`.

runtime_config_linux.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ type Network struct {
198198
Priorities []InterfacePriority `json:"priorities"`
199199
}
200200

201+
// IntelRdt for Linux cgroup 'intel_rdt' resource management
202+
type IntelRdt struct {
203+
// L3 cache allocation CBM (cache bit mask) for container
204+
L3Cbm string `json:"l3Cbm"`
205+
}
206+
201207
// Resources has container runtime resource constraints
202208
type Resources struct {
203209
// DisableOOMKiller disables the OOM killer for out of memory conditions
@@ -216,6 +222,8 @@ type Resources struct {
216222
HugepageLimits []HugepageLimit `json:"hugepageLimits"`
217223
// Network restriction configuration
218224
Network Network `json:"network"`
225+
// IntelRdt restriction configuration
226+
IntelRdt IntelRdt `json:"intelRdt"`
219227
}
220228

221229
// Device represents the information on a Linux special device file

0 commit comments

Comments
 (0)