Skip to content

Commit

Permalink
config-linux: Split Intel RDT CMT and MBM configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Szulik <pawel.szulik@intel.com>
  • Loading branch information
Paweł Szulik committed Nov 27, 2020
1 parent 5175c3e commit 8f6cf10
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 3 additions & 1 deletion config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,11 @@ The following parameters can be specified for the container:

* 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.

* **`monitoring`** *(boolean OPTIONAL)* - specifies if Intel RDT monitoring features should be enabled:
* **`enableCMT`** *(boolean OPTIONAL)* - specifies if Intel RDT CMT should be enabled:
* CMT ( Cache Monitoring Technology ) supports monitoring of the last-level cache (LLC) occupancy
for the container.

* **`enableMBM`** *(boolean OPTIONAL)* - specifies if Intel RDT MBM should be enabled:
* MBM ( Memory Bandwidth Monitoring ) supports monitoring of total and local memory bandwidth
for the container.

Expand Down
5 changes: 4 additions & 1 deletion schema/config-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@
"type": "string",
"pattern": "^MB:[^\\n]*$"
},
"monitoring": {
"enableCMT": {
"type": "boolean"
},
"enableMBM": {
"type": "boolean"
}
}
Expand Down
13 changes: 9 additions & 4 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ type LinuxSyscall struct {
}

// LinuxIntelRdt has container runtime resource constraints for Intel RDT CAT and MBA
// features and a flag of monitoring metric for Intel RDT CMT and MBM features.
// Intel RDT features are available in Linux 4.14 and newer kernel versions
// features and flags enabling Intel RDT CMT and MBM features.
// Intel RDT features are available in Linux 4.14 and newer kernel versions.
type LinuxIntelRdt struct {
// The identity for RDT Class of Service
ClosID string `json:"closID,omitempty"`
Expand All @@ -694,6 +694,11 @@ type LinuxIntelRdt struct {
// default, and in "MBps" if MBA Software Controller is enabled.
MemBwSchema string `json:"memBwSchema,omitempty"`

// The flag to indicate if Intel RDT monitoring features (CMT and MBM) are enabled.
Monitoring bool `json:"monitoring,omitempty"`
// The flag to indicate if Intel RDT CMT is enabled. CMT ( Cache Monitoring Technology ) supports monitoring of
// the last-level cache (LLC) occupancy for the container.
EnableCMT bool `json:"enableCMT,omitempty"`

// The flag to indicate if Intel RDT MBM is enabled. MBM ( Memory Bandwidth Monitoring ) supports monitoring of
// total and local memory bandwidth for the container.
EnableMBM bool `json:"enableMBM,omitempty"`
}

0 comments on commit 8f6cf10

Please sign in to comment.