-
Notifications
You must be signed in to change notification settings - Fork 554
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
How to set rlimit value to unlimited #692
Comments
On Wed, Feb 15, 2017 at 10:17:31PM -0800, cuihaozhi wrote:
runtime should be support type for "RLIMI_INFINITY" ?
Yeah, I think the runtime-spec would need to be patched to add this
support, if maintainers feel like it should be supported. Previous
discussion in the thread starting with [1]. Now that we've landed
#648, I expect maintainers would prefer -1 in the JSON to represent
RLIM_INFINITY, which would mean making hard/soft signed integer
properties.
[1]: https://groups.google.com/a/opencontainers.org/forum/#!topic/dev/nfuv8NnOsUg
Subject: rlimits
Date: Thu, 20 Oct 2016 12:29:17 -0700
Message-ID: <CAJvN1BOB9esrq29_2=rzSquRsRR6Rc10huM6WQoNKNfyFVdufw@mail.gmail.com>
|
|
Yes kernel defines
people can still use I'm thinking maybe we should revert #648 , types should always be the same as kernel's, we can only change @crosbymichael @mrunalp @dqminh @tianon WDYT? |
@hqhq ya, that sounds good to me |
This partially revert opencontainers#648 , after a second thought, I think we should use specs value the same as kernel API input, see: opencontainers#692 (comment) For memory and hugetlb limits *.limit_in_bytes, cgroup APIs take the values as string, but the parsed values are unsigned long, see: https://github.com/torvalds/linux/blob/v4.10/mm/page_counter.c#L175-L193 For `cpu.cfs_quota_us` and `cpu.rt_runtime_us`, cgroup APIs take the input value as signed long long, while `cpu.cfs_period_us` and `cpu.rt_periof_us` take the input value as unsigned long long. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
@crosbymichael @mrunalp I pushed #704 to address concerns in my comments, I think we can close this issue and conclude that people can use RLIMI_INFINITY or |
ok, i see, its just a weird cast that we have to do for the conversion |
We just merged @hqhq pr so this can be closed. |
opencontainers/runc#1283
runtime should be support type for "RLIMI_INFINITY" ?
The text was updated successfully, but these errors were encountered: