-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Set Delegate to true for cgroups transient units #648
Conversation
LGTM |
@mrunalp Do you know which version of systemd added support for |
Upstream reference: opencontainers/runc#648 Signed-off-by: Mrunal Patel <mrunalp@gmail.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
@cyphar i think Delegate=is not supported for systemd < 218. Im not sure if this will result in an error for those systems. LGTM if this works with systemd < 218 😛 |
Upstream reference: opencontainers/runc#648 Signed-off-by: Mrunal Patel <mrunalp@gmail.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
I think we should be fine merging this. Fedora 23 has 222. RHEL 7 has 219. Ubuntu 15.10 has 225 (The last LTS 14.04 did not have it and next 16.04 should have a newer version). |
This is required because we manage some of the cgroups ourselves. This recommendation came from talking with systemd devs about some of the issues that we see when using the systemd cgroups driver. Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
41eb174
to
93d1a1a
Compare
And AFAIK openSUSE Tumblweed and Leap 42.2 will all have systemd >= 218. Thanks for checking. LGTM. |
Set Delegate to true for cgroups transient units
Upstream reference: opencontainers/runc#648 Signed-off-by: Mrunal Patel <mrunalp@gmail.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream reference: opencontainers/runc#648 Signed-off-by: Mrunal Patel <mrunalp@gmail.com> Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Allow negative value for some resource fields
This partially revert opencontainers#648 , after a second thought, I think we should use specs value the same as kernel API input, see: opencontainers/runtime-spec#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>
This is required because we manage some of the cgroups ourselves.
This recommendation came from talking with systemd devs about
some of the issues that we see when using the systemd cgroups driver.
Signed-off-by: Mrunal Patel mrunalp@gmail.com