-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Document the meaning of CPU requests & limits #50987
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
## How CPU requests and limits work under the hood | ||
|
||
### On Linux systems | ||
|
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.
Please wrap the long "lines" appropriately.
See https://sembr.org for the preferred line wrapping style.
I think this new section would be great as a page under https://kubernetes.io/docs/concepts/containers/ The existing task page can (should) link to that new concept page, and can also include a bit of a summary. |
Agree with @lmktfy here, I think this would be a great place for the content |
@pegagas, would you be willing to adapt this per #50987 (comment) ? You can, of course, keep all the words you've already written - it's just about where they go. |
Description
I have added a new section titled "How CPU requests and limits work under the hood", which explains in detail:
How CPU requests are translated into cgroups v1 shares or cgroups v2 weight
How CPU limits are implemented using a quota system with a fixed 100ms period
An explanation of CPU limiting, including concrete examples
Explanation of how CPU throttling works
The different implementation of CPU requests and limits
Explanation of how CPU caps are used to enforce limits in Windows
Explanation of how it works on multi-core systems
Issue
fix: #50308