-
Notifications
You must be signed in to change notification settings - Fork 129
CNF-23471: Dedicate cpus for dpdk vswitch #1546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Tal-or
wants to merge
9
commits into
openshift:main
Choose a base branch
from
Tal-or:dedicate_cpus_for_dpdk_vswitch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
69f2e36
api: add spec.cpu.dedicated and spec.net.disableOvsDynamicPinning to …
Tal-or 1bb95c9
perfprof:status: prerequisite validation and Degraded status for dedi…
Tal-or 4ed6e05
perfprof: add dedicated CPUs to ReservedSystemCPUs in KubeletConfig
Tal-or a517b1d
perfprof:tuned: union dedicated CPUs into isolated_cores for TuneD
Tal-or 614dbc0
perfprof:cgroups: add dedicated CPU slice, cgroup partition, IRQ and …
Tal-or f486be3
perfprof:e2e: tests for dedicated CPUs, status, and OVS disable
Tal-or b458b42
render-sync: `make render-sync`
Tal-or 50cef8f
perfprof:e2e: pass explicit client to IsWorkloadPartitioningEnabled
Tal-or f398b31
perfprof:e2e: parse kernel cmdline CPU lists as cpusets instead of regex
Tal-or File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| [Unit] | ||
| Description=Top level slice for dedicated CPUs used by services/applications that requires full isolation. | ||
|
|
||
| [Slice] | ||
| AllowedCPUs={{ .DedicatedCpus }} |
This file contains hidden or 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
34 changes: 34 additions & 0 deletions
34
assets/performanceprofile/scripts/dedicated-cpus-configure.sh
This file contains hidden or 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,34 @@ | ||
| #!/bin/bash | ||
|
|
||
| # dedicated-cpus-configure.sh configures the dedicatedcpus.slice cpuset | ||
| # partition so that the dedicated CPUs are fully isolated from the kernel | ||
| # scheduler (equivalent to isolcpus=domain for those specific CPUs). | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| DEDICATED_CPUS="{{ .DedicatedCpus }}" | ||
|
|
||
| if [ -z "$DEDICATED_CPUS" ]; then | ||
| echo "No dedicated CPUs configured, nothing to do" | ||
| exit 0 | ||
| fi | ||
|
|
||
| CGROUP_PATH="/sys/fs/cgroup/dedicatedcpus.slice" | ||
|
|
||
| if [ ! -d "$CGROUP_PATH" ]; then | ||
| echo "ERROR: dedicatedcpus.slice cgroup does not exist at $CGROUP_PATH" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Set exclusive CPUs on the dedicated slice | ||
| echo "$DEDICATED_CPUS" > "$CGROUP_PATH/cpuset.cpus.exclusive" | ||
|
|
||
| # Set the CPUs available to the slice | ||
| echo "$DEDICATED_CPUS" > "$CGROUP_PATH/cpuset.cpus" | ||
|
|
||
| # Create an isolated partition — removes these CPUs from the parent's | ||
| # scheduling domain, giving kernel-level isolation equivalent to | ||
| # isolcpus=domain without affecting other CPUs. | ||
| echo "isolated" > "$CGROUP_PATH/cpuset.cpus.partition" | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| echo "Configured dedicatedcpus.slice as isolated partition for CPUs: $DEDICATED_CPUS" | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.