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

cgroup2 support #11

Merged
merged 13 commits into from Feb 27, 2019

Conversation

Projects
None yet
1 participant
@giuseppe
Copy link
Owner

giuseppe commented Feb 17, 2019

No description provided.

@giuseppe giuseppe force-pushed the cgroups2 branch 2 times, most recently from c976b45 to 132caf2 Feb 18, 2019

@giuseppe giuseppe marked this pull request as ready for review Feb 18, 2019

@giuseppe giuseppe force-pushed the cgroups2 branch 5 times, most recently from 9e1eb41 to b41cef9 Feb 18, 2019

@giuseppe giuseppe changed the title [WIP] cgroup2 support cgroup2 support Feb 21, 2019

@giuseppe giuseppe force-pushed the cgroups2 branch 19 times, most recently from c700cfe to 7813cb1 Feb 22, 2019

giuseppe added some commits Feb 22, 2019

cgroups: honor systemd naming
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
status: do not look at the cgroup path
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>

giuseppe added some commits Feb 17, 2019

cgroups: add support for detecting cgroup mode
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
cgroups: raise an error if hybrid mode is really used
having /sys/fs/cgroup/unified is fine, but it should not have any
controller attached.

Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
cgroups: enable controllers when using cgroupsfs backend
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
cgroup: drop get_system_path
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
src: fix compiler warnings
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
container: avoid using expensive lookup with realpath
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
cgroups: fix error message
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
cgroups: fallback to system bus on sd_bus_default failure
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
cgroups: initialize memory subsystem
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
spec: drop resources block
so it is usable as it is for rootless containers.

Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>

@giuseppe giuseppe force-pushed the cgroups2 branch 4 times, most recently from 29a65b1 to 7574ce3 Feb 27, 2019

cgroups: initial implementation for cgroups v2
the OCI runtime specs are written with cgroups v1 in mind, so attempt
a best effort conversion to cgroups v2.

The implementation still lacks anything that should now be done with
eBPF.

Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>

@giuseppe giuseppe force-pushed the cgroups2 branch 5 times, most recently from 3d023cf to 263a71e Feb 27, 2019

@giuseppe giuseppe merged commit 263a71e into master Feb 27, 2019

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@giuseppe giuseppe deleted the cgroups2 branch Feb 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.