Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zouyee
Copy link
Contributor

@zouyee zouyee commented Jan 5, 2024

No description provided.

@zouyee zouyee marked this pull request as draft January 5, 2024 02:45
@zouyee zouyee marked this pull request as ready for review January 5, 2024 07:28
@zouyee
Copy link
Contributor Author

zouyee commented Jan 5, 2024

/assign @AkihiroSuda @fuweid
PTAL

@cpuguy83
Copy link
Member

I'm having trouble finding the kernel docs on these. Have any pointers?

@zouyee
Copy link
Contributor Author

zouyee commented Jan 22, 2024

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
torvalds/linux@f418371#diff-cc1a82129952a910fdc4292448c2a097a2ba538bebefcf3c06381e45639ae73e

@zouyee
Copy link
Contributor Author

zouyee commented Jan 30, 2024

@dcantah @mxpv PTAL

newSystemdProperty("CPUWeight", *resources.CPU.Weight))
if resources.CPU != nil {
// Do not add duplicate CPUWeight property
if resources.CPU.Idle != nil && *resources.CPU.Weight != 0 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some extra comments on this new case?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I think you need a nil check for CPU.Weight?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants