Skip to content

Commit 9f85c94

Browse files
author
Paweł Szulik
committed
config-linux: Split Intel RDT CMT and MBM configuration.
Signed-off-by: Paweł Szulik <pawel.szulik@intel.com>
1 parent 5175c3e commit 9f85c94

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

config-linux.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,11 @@ The following parameters can be specified for the container:
549549

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

552-
* **`monitoring`** *(boolean OPTIONAL)* - specifies if Intel RDT monitoring features should be enabled:
552+
* **`enableCMT`** *(boolean OPTIONAL)* - specifies if Intel RDT CMT should be enabled:
553553
* CMT ( Cache Monitoring Technology ) supports monitoring of the last-level cache (LLC) occupancy
554554
for the container.
555+
556+
* **`enableMBM`** *(boolean OPTIONAL)* - specifies if Intel RDT MBM should be enabled:
555557
* MBM ( Memory Bandwidth Monitoring ) supports monitoring of total and local memory bandwidth
556558
for the container.
557559

schema/config-linux.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,10 @@
251251
"type": "string",
252252
"pattern": "^MB:[^\\n]*$"
253253
},
254-
"monitoring": {
254+
"enableCMT": {
255+
"type": "boolean"
256+
},
257+
"enableMBM": {
255258
"type": "boolean"
256259
}
257260
}

specs-go/config.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ type LinuxSyscall struct {
679679
}
680680

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

697-
// The flag to indicate if Intel RDT monitoring features (CMT and MBM) are enabled.
698-
Monitoring bool `json:"monitoring,omitempty"`
697+
// The flag to indicate if Intel RDT CMT is enabled. CMT ( Cache Monitoring Technology ) supports monitoring of
698+
// the last-level cache (LLC) occupancy for the container.
699+
EnableCMT bool `json:"enableCMT,omitempty"`
700+
701+
// The flag to indicate if Intel RDT MBM is enabled. MBM ( Memory Bandwidth Monitoring ) supports monitoring of
702+
// total and local memory bandwidth for the container.
703+
EnableMBM bool `json:"enableMBM,omitempty"`
699704
}

0 commit comments

Comments
 (0)