Codebase list golang-github-opencontainers-specs / upstream/1.0.2.66.g20a2d97+git20210910.1.0d6cc58
Import upstream version 1.0.2.66.g20a2d97+git20210910.1.0d6cc58 Debian Janitor 2 years ago
3 changed file(s) with 25 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
553553
554554 * If `closID` is set, and neither of `l3CacheSchema` and `memBwSchema` are set, runtime MUST check if corresponding pre-configured directory `closID` is present in mounted `resctrl`. If such pre-configured directory `closID` exists, runtime MUST assign container to this `closID` and [generate an error](runtime.md#errors) if directory does not exist.
555555
556 * **`enableCMT`** *(boolean, OPTIONAL)* - specifies if Intel RDT CMT should be enabled:
557 * CMT (Cache Monitoring Technology) supports monitoring of the last-level cache (LLC) occupancy
558 for the container.
559
560 * **`enableMBM`** *(boolean, OPTIONAL)* - specifies if Intel RDT MBM should be enabled:
561 * MBM (Memory Bandwidth Monitoring) supports monitoring of total and local memory bandwidth
562 for the container.
556563
557564 ### Example
558565
258258 "memBwSchema": {
259259 "type": "string",
260260 "pattern": "^MB:[^\\n]*$"
261 },
262 "enableCMT": {
263 "type": "boolean"
264 },
265 "enableMBM": {
266 "type": "boolean"
261267 }
262268 }
263269 },
179179 // MountLabel specifies the selinux context for the mounts in the container.
180180 MountLabel string `json:"mountLabel,omitempty"`
181181 // IntelRdt contains Intel Resource Director Technology (RDT) information for
182 // handling resource constraints (e.g., L3 cache, memory bandwidth) for the container
182 // handling resource constraints and monitoring metrics (e.g., L3 cache, memory bandwidth) for the container
183183 IntelRdt *LinuxIntelRdt `json:"intelRdt,omitempty"`
184184 // Personality contains configuration for the Linux personality syscall
185185 Personality *LinuxPersonality `json:"personality,omitempty"`
684684 Args []LinuxSeccompArg `json:"args,omitempty"`
685685 }
686686
687 // LinuxIntelRdt has container runtime resource constraints for Intel RDT
688 // CAT and MBA features which introduced in Linux 4.10 and 4.12 kernel
687 // LinuxIntelRdt has container runtime resource constraints for Intel RDT CAT and MBA
688 // features and flags enabling Intel RDT CMT and MBM features.
689 // Intel RDT features are available in Linux 4.14 and newer kernel versions.
689690 type LinuxIntelRdt struct {
690691 // The identity for RDT Class of Service
691692 ClosID string `json:"closID,omitempty"`
698699 // The unit of memory bandwidth is specified in "percentages" by
699700 // default, and in "MBps" if MBA Software Controller is enabled.
700701 MemBwSchema string `json:"memBwSchema,omitempty"`
702
703 // EnableCMT is the flag to indicate if the Intel RDT CMT is enabled. CMT (Cache Monitoring Technology) supports monitoring of
704 // the last-level cache (LLC) occupancy for the container.
705 EnableCMT bool `json:"enableCMT,omitempty"`
706
707 // EnableMBM is the flag to indicate if the Intel RDT MBM is enabled. MBM (Memory Bandwidth Monitoring) supports monitoring of
708 // total and local memory bandwidth for the container.
709 EnableMBM bool `json:"enableMBM,omitempty"`
701710 }
702711
703712 // ZOS contains platform-specific configuration for z/OS based containers.