-
Notifications
You must be signed in to change notification settings - Fork 579
config-linux: add CFS bandwidth burst #1120
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -360,6 +360,9 @@ The following parameters can be specified to set up the controller: | |||||
|
||||||
* **`shares`** *(uint64, OPTIONAL)* - specifies a relative share of CPU time available to the tasks in a cgroup | ||||||
* **`quota`** *(int64, OPTIONAL)* - specifies the total amount of time in microseconds for which all tasks in a cgroup can run during one period (as defined by **`period`** below) | ||||||
If specified with any (valid) positive value, it MUST be no smaller than `burst` (runtimes MAY generate an error). | ||||||
* **`burst`** *(uint64, OPTIONAL)* - specifies the maximum amount of accumulated time in microseconds for which all tasks in a cgroup can run additionally for burst during one period (as defined by **`period`** below) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Given this, I don't think "accumulated" is the right choice of word here -- this feature is about borrowing from the future, not accumulating from the past:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||
If specified, this value MUST be no larger than any positive `quota` (runtimes MAY generate an error). | ||||||
* **`period`** *(uint64, OPTIONAL)* - specifies a period of time in microseconds for how regularly a cgroup's access to CPU resources should be reallocated (CFS scheduler only) | ||||||
* **`realtimeRuntime`** *(int64, OPTIONAL)* - specifies a period of time in microseconds for the longest continuous period in which the tasks in a cgroup have access to CPU resources | ||||||
* **`realtimePeriod`** *(uint64, OPTIONAL)* - same as **`period`** but applies to realtime scheduler only | ||||||
|
@@ -373,6 +376,7 @@ The following parameters can be specified to set up the controller: | |||||
"cpu": { | ||||||
"shares": 1024, | ||||||
"quota": 1000000, | ||||||
"burst": 1000000, | ||||||
"period": 500000, | ||||||
"realtimeRuntime": 950000, | ||||||
"realtimePeriod": 1000000, | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -275,6 +275,7 @@ | |
"cpu": { | ||
"shares": 1024, | ||
"quota": 1000000, | ||
"burst": 1000000, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Period MUST be no smaller than burst -> burst should not be greater than period(?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Why is this contraint needed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right. Sorry, my bad, I misread the new content on field description above 🙈 |
||
"period": 500000, | ||
"realtimeRuntime": 950000, | ||
"realtimePeriod": 1000000, | ||
|
Uh oh!
There was an error while loading. Please reload this page.