The default value of cfs_quota_us should be -1, which is negative#499
The default value of cfs_quota_us should be -1, which is negative#499LaynePeng wants to merge 1 commit intoopencontainers:masterfrom
Conversation
|
On Thu, Jun 16, 2016 at 11:07:25AM -0700, Layne Peng wrote:
This issue is broader than that one field. For example 2ce2c86 I agree that if you allow join-and-tweak it's nice to make a Another approach to this distinction (which is clear in JSON, but |
|
For reference, https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt:
I'm +1 on this change (given that the kernel clearly considers negative values not only permissible but meaningful), but to be considered the commit will need a |
|
On Thu, Sep 08, 2016 at 02:01:04PM -0700, Tianon Gravi wrote:
Can you float a situation where you'd use -1 outside of join-and-tweak The default values are: I'm ok with allowing join-and-tweak, but if we do I think we should |
|
@LaynePeng the change makes sense to me. Thanks. Can you rebase this PR and make sure the travis errors are fixed? Thanks! |
|
I agree with @wking this is a more than one field issue, if we consider join-and-tweak , all fields which accept negative values by kernel api should use @crosbymichael Do you think we should fix all these fields to suit kernel api? If so, I can carry this PR and fix them all in once. |
|
On Fri, Oct 28, 2016 at 11:48:01PM -0700, Qiang Huang wrote:
The filesystem cgroup API isn't based on JSON, so I don't think we So using -1 where the kernel uses -1, and using null or unset where |
|
@wking Yes we don't have to use I don't think this is good enough. And yes we can use explicit nulls or an "unlimited" string, I just don't see the necessity that we stick value types to |
|
On Sun, Oct 30, 2016 at 11:16:54PM -0700, Qiang Huang wrote:
Following the kernel is certainly the path of least resistance. There |
|
I would like for us to keep a consistent model of Is |
|
On Fri, Nov 4, 2016 at 9:46AM -0700, Michael Crosby wrote:
And also presumably “unset means do nothing”. That uses two values
Yes, for cfs_quota_us 1. But the devices cgroup uses ‘a’ for So as far as I can see, that leaves us with “just use the kernel's The only tricky cases will be deciding whether existing values like |
|
LGTM @LaynePeng can you please amend your commit with a valid DCO ( |
Carry opencontainers#499 For these values, cgroup kernal APIs accept -1 to set them as unlimited, as docker and runc all support update resources, we should not set drawbacks in spec. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
|
I'm carrying it in #648 , thanks for taking this to us @LaynePeng . |
The default value of cfs_quota_us should be -1, means unlimited. So, I think we need to make this field int. Because RunC has added update feature, which should let user set it back to unlimited.