-
Notifications
You must be signed in to change notification settings - Fork 1.8k
TELCODOCS-1512: Adding content for shared CPUs in performance profile - WIP #68393
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
Conversation
|
@rohennes: This pull request references TELCODOCS-1512 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.15.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
8b64ecd to
34f2c6d
Compare
|
🤖 Wed Mar 06 11:00:49 - Prow CI generated the docs preview: |
34f2c6d to
b7cae3f
Compare
f93e442 to
0775884
Compare
8d62037 to
bc84855
Compare
|
@rohennes: This pull request references TELCODOCS-1512 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.15.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
34f499d to
8eb3d0b
Compare
Tal-or
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did initial pass.
We should have another section for how this feature should work in cgroup version2 when CPU load-balancing disabled, but we would probably need that only to 4.16
| requests: | ||
| cpu: “2” <1> | ||
| memory: “100m” | ||
| openshift.io/shared-cpus: ”1” <2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The resource name has changed to:
workload.openshift.io/enable-shared-cpus
| [id="configuring-a-workload-to-use-shared-cpus_{context}"] | ||
| = Configuring a workload to use shared CPUs | ||
|
|
||
| You can pin lightweight workload tasks to shared CPUs to improve CPU resource efficiency. When you enable shared CPUs on a node, containers deployed on the node feature the `OPENSHIFT_SHARED_CPUS` environment variable, which specifies the ID of the shared CPUs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We added another environment variable: OPENSHIFT_ISOLATED_CPUS that specifies the isolated cpus as well and make it easier for the user to distinguished between shared and non shared cpus
5858965 to
318bb4d
Compare
| nodeSelector: | ||
| node-role.kubernetes.io/performance: "test" <3> | ||
| ---- | ||
| <1> Define the shared CPU cores. The number of shared cores must be less than the number of reserved cores. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tal-or is this correct: "The number of shared cores must be less than the number of reserved cores."
Should it be "less than or equal to"? So you can specify 2 shared cores and 2 reserved cores, for example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't recall such a constrain, could you please refer me to the original quote from which this constrain was taken?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, it's from this slide: https://docs.google.com/presentation/d/1duzJ3kVuYv4DZbYFywfHCVqIwS2dAYb9WmzOIB0gNI8/edit#slide=id.g2161b900cf2_0_1586
Maximum value: There’s no hard limit as long as it smaller than spec.cpu.reserved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is wrong and I don't even remember why I wrote it :)
Anyway I fixed it.
There's no hard limit
a3f77b0 to
e41194a
Compare
|
@rohennes: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/lgtm |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
/lifecycle frozen |
|
@rohennes: The DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
|
/remove-lifecycle rotten |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
/remove-lifecycle rotten |
|
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
|
/remove-lifecycle rotten |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
/remove-lifecycle rotten |
|
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
|
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
|
@openshift-bot: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
TELCODOCS-1512: New feature allows you to define shared CPUs in the performance profile. You can then assign lightweight workload tasks to these shared CPUs to ensure core workload tasks can maximize isolated CPUs.
Version(s):
4.15+
Issue:
https://issues.redhat.com/browse/TELCODOCS-1512
Link to docs preview:
https://68393--ocpdocs-pr.netlify.app/openshift-enterprise/latest/scalability_and_performance/cnf-shared-cpu-for-workloads
QE review:
Additional information: