Skip to content

Add auto corepining path #722

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

Merged
merged 1 commit into from
Apr 15, 2025
Merged

Add auto corepining path #722

merged 1 commit into from
Apr 15, 2025

Conversation

sknat
Copy link
Collaborator

@sknat sknat commented Apr 9, 2025

This patch adds support in VPP for pinning workers to the CPU cores that are assigned by a static allocator.

When k8s is configured to run with a static allocator [0] and that VPP starts with requests.CPU equal to limits.CPU and both integer numbers.

having VPP configured with

cpu {
   main-core 0
   corelist-workers 2-3
   relative
}

Will make it so that numbers 0,2,3 do not refer to absolutes CPU IDs but to the 0th, 2nd and 3rd CPU of those allotted by the static core allocator in k8s.

[0] https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#static-policy

@hedibouattour
Copy link
Collaborator

The patch got upstreamed, shall we just upgrade our VPP version?

@hedibouattour
Copy link
Collaborator

Ah forgot we actually use 24.10 here, so LGTM

@hedibouattour
Copy link
Collaborator

And this needs a run of go mod tidy

This patch adds support in VPP for pinning workers to the CPU
cores that are assigned by a static allocator.

When k8s is configured to run with a static allocator [0]
and that VPP starts with requests.CPU equal to limits.CPU
and both integer numbers.

having VPP configured with

cpu {
   main-core 0
   corelist-workers 2-3
   relative
}

Will make it so that numbers 0,2,3 do not refer to absolutes CPU
IDs but to the 0th, 2nd and 3rd CPU of those allotted by the static
core allocator in k8s.

[0] https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/#static-policy

Signed-off-by: Nathan Skrzypczak <[email protected]>
@sknat sknat force-pushed the nsk-cp-corepinning branch from 3bd8223 to ea2e520 Compare April 14, 2025 16:17
@hedibouattour hedibouattour merged commit 8deddc6 into master Apr 15, 2025
6 checks passed
@hedibouattour hedibouattour deleted the nsk-cp-corepinning branch April 15, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants