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

CPUQuota= values > 100% are invalid since v231 #3851

Closed
1 task
djgera opened this issue Aug 1, 2016 · 4 comments · Fixed by #3886
Closed
1 task

CPUQuota= values > 100% are invalid since v231 #3851

djgera opened this issue Aug 1, 2016 · 4 comments · Fixed by #3886
Labels
cgroups regression ⚠️ A bug in something that used to work correctly and broke through some recent commit
Milestone

Comments

@djgera
Copy link

djgera commented Aug 1, 2016

Submission type

  • [X ] Bug report
  • Request for enhancement (RFE)

NOTE: Do not submit anything other than bug reports or RFEs via the issue tracker!

systemd version the issue has been seen with

v231

NOTE: Do not submit bug reports about anything but the two most recently released systemd versions upstream!

Used distribution

Arch Linux (x86_64)

In case of bug report: Expected behaviour you didn't see

$ sudo systemctl --runtime set-property ghb@:1.service CPUQuota=200%
$

In case of bug report: Unexpected behaviour you saw

$ sudo systemctl --runtime set-property ghb@:1.service CPUQuota=200%
CPU quota '200%' invalid.

In case of bug report: Steps to reproduce the problem

$ sudo systemctl --runtime set-property ghb@:1.service CPUQuota=200%

@poettering poettering added cgroups regression ⚠️ A bug in something that used to work correctly and broke through some recent commit labels Aug 2, 2016
@poettering poettering added this to the v232 milestone Aug 2, 2016
@philips
Copy link
Contributor

philips commented Aug 3, 2016

@vcaputo could you take a look at this? Related to coreos/coreos-overlay#2106

@ajeddeloh
Copy link
Contributor

Looks like it was introduced in 9184ca4 since parse_percent checks the value is in the range [0,100]. Looking through the man pages, it appears the CPUQuota is the only place where values >100% are used. Not sure if a "parse_percent_unbounded" should be introduced or just revert the change in that one spot.

@dm0-
Copy link
Contributor

dm0- commented Aug 4, 2016

I've tested using a parse_percent_unbounded function, which seems to work for me. The PR is #3886.

@vcaputo
Copy link
Member

vcaputo commented Aug 4, 2016

Huh, I only get notified on my personal email for this project, didn't see my mention til now. I believe dm0 is working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cgroups regression ⚠️ A bug in something that used to work correctly and broke through some recent commit
Development

Successfully merging a pull request may close this issue.

6 participants