Skip to content

Conversation

@rohennes
Copy link
Contributor

@rohennes rohennes commented Nov 24, 2023

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:

  • QE has approved this change.

Additional information:

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 24, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 24, 2023

@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.

Details

In response to this:

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:

QE review:

  • QE has approved this change.

Additional information:

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.

@openshift-ci openshift-ci bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 24, 2023
@openshift-ci openshift-ci bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 24, 2023
@ocpdocs-previewbot
Copy link

ocpdocs-previewbot commented Nov 24, 2023

🤖 Wed Mar 06 11:00:49 - Prow CI generated the docs preview:
https://68393--ocpdocs-pr.netlify.app

@openshift-ci openshift-ci bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 28, 2023
@rohennes rohennes force-pushed the TELCODOCS-1512 branch 2 times, most recently from f93e442 to 0775884 Compare November 28, 2023 17:09
@openshift-ci openshift-ci bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 28, 2023
@rohennes rohennes force-pushed the TELCODOCS-1512 branch 3 times, most recently from 8d62037 to bc84855 Compare November 30, 2023 13:34
@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 30, 2023

@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.

Details

In response to this:

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--docspreview.netlify.app/openshift-enterprise/latest/scalability_and_performance/cnf-shared-cpu-for-workloads

QE review:

  • QE has approved this change.

Additional information:

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.

@rohennes rohennes changed the title TELCODOCS-1512: Adding content for shared CPUS in performance profile TELCODOCS-1512: Adding content for shared CPUs in performance profile - WIP Nov 30, 2023
@rohennes rohennes force-pushed the TELCODOCS-1512 branch 3 times, most recently from 34f499d to 8eb3d0b Compare November 30, 2023 16:19
Copy link

@Tal-or Tal-or left a 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>
Copy link

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.
Copy link

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

@rohennes rohennes force-pushed the TELCODOCS-1512 branch 3 times, most recently from 5858965 to 318bb4d Compare December 6, 2023 14:33
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.
Copy link
Contributor Author

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?

Copy link

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?

Copy link
Contributor Author

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

Copy link

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

@rohennes rohennes force-pushed the TELCODOCS-1512 branch 2 times, most recently from a3f77b0 to e41194a Compare December 6, 2023 15:25
@openshift-ci
Copy link

openshift-ci bot commented Apr 12, 2024

@rohennes: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@Tal-or
Copy link

Tal-or commented Apr 18, 2024

/lgtm
/hold
since the PR is still WIP
feel free to unhold when ready

@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Apr 18, 2024
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 18, 2024
@rohennes
Copy link
Contributor Author

/lifecycle frozen

@openshift-ci
Copy link

openshift-ci bot commented Jul 18, 2024

@rohennes: The lifecycle/frozen label cannot be applied to Pull Requests.

Details

In response to this:

/lifecycle frozen

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.

@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Aug 18, 2024
@Tal-or
Copy link

Tal-or commented Aug 18, 2024

/remove-lifecycle rotten

@openshift-ci openshift-ci bot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Aug 18, 2024
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 17, 2024
@Tal-or
Copy link

Tal-or commented Nov 20, 2024

/remove-lifecycle rotten

@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Dec 21, 2024
@rohennes
Copy link
Contributor Author

/remove-lifecycle rotten

@openshift-ci openshift-ci bot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Dec 21, 2024
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 22, 2025
@rohennes
Copy link
Contributor Author

/remove-lifecycle rotten

@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 24, 2025
@openshift-bot
Copy link

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci openshift-ci bot closed this May 24, 2025
@openshift-ci
Copy link

openshift-ci bot commented May 24, 2025

@openshift-bot: Closed this PR.

Details

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants