-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- explicit values file for privileged direct method, - hide (into docs directory) "unprivileged" direct method (and fixes), - remove unnessesary mounts (mcfg, /dev/cpu/dev/mem for privileged access), - add instructions to collection methods, - fixes (extra builder) for build local development image, - silent mode - move collection methods to the top
- Loading branch information
Showing
10 changed files
with
124 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 11 additions & 1 deletion
12
deployment/pcm/values-direct.yaml → ...-examples/values-direct-unprivileged.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
# Warning: this file is to be used or direct unprivilegd access which requires 3rd party plugin | ||
# e.g. device-injector NRI or smarter-devices-cpu-mem | ||
privileged: false | ||
|
||
# Swtich to using MSR | ||
PCM_NO_MSR: 0 # use MSR | ||
PCM_NO_PERF: 1 # do not use Linux perf | ||
PCM_USE_UNCORE_PERF: 0 # also use MSR for uncore | ||
PCM_NO_RDT: 0 # Collect RDT data | ||
PCM_USE_RESCTRL: 0 # using MSR (no resctrl) | ||
resctrlHostMount: false # with MSR resctrl mount is not needed | ||
|
||
# RDT metrics will be used by direct msr programming | ||
resctrlHostMount: false | ||
resctrlInsideMount: false | ||
|
||
# sys and pci mounts are required for uncore PMU devices discovery | ||
sysMount: true # /pcm/sys is required | ||
pciMount: true # /pcm/proc/bus/pci is required | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,7 @@ securityContext: | |
add: | ||
- SYS_ADMIN | ||
- SYS_RAWIO | ||
#- PERFMON | ||
{{- end }} | ||
{{- end }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#### Tunning for "direct" privilaged access | ||
privileged: true | ||
|
||
# Switch PCM to use msr access always | ||
PCM_NO_MSR: 0 # use MSR | ||
PCM_NO_PERF: 1 # do not use Linux perf | ||
PCM_USE_UNCORE_PERF: 0 # also use MSR for uncore | ||
PCM_NO_RDT: 0 # Enable RDT metrics ... | ||
PCM_USE_RESCTRL: 0 # but using MSR (no resctrl filesystem) | ||
|
||
# with privileged container addtional mounts aren't required | ||
resctrlHostMount: false # with MSR resctrl mount is not needed | ||
resctrlInsideMount: false | ||
sysMount: false | ||
pciMount: false | ||
mcfgMount: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#### ================ Tunning for VM ================ | ||
nmiWatchdogMount: true | ||
|
||
# Disable RDT because is not avaiable for VM instances | ||
PCM_NO_RDT: 1 | ||
resctrlHostMount: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters