-
Notifications
You must be signed in to change notification settings - Fork 240
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
support cpu idle and burst for cgroupv2 #323
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: zouyee <zouyee1989@gmail.com>
/assign @AkihiroSuda @fuweid |
I'm having trouble finding the kernel docs on these. Have any pointers? |
sched: Cgroup SCHED_IDLE support is introduced in Linux 5.15 Burstable CFS controller is landed in Linux 5.14 |
Signed-off-by: zouyee <zouyee1989@gmail.com>
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
// if CPUWeight == 0, cpu.idle is set to 1; | ||
// if CPUWeight != 0, cpu.idle is set to 0. | ||
// Do not add duplicate CPUWeight property | ||
if resources.CPU.Idle != nil && resources.CPU.Weight != nil && *resources.CPU.Weight != 0 { |
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'm not following this logic.
Right now if resources.CPU.Idle
is set and resources.CPU.Weight
is set to a non-zero value then we end up with CPUWeight
being set twice.
No description provided.