Skip to content

Enable cgroup delegation for semaphore #257

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fzakaria
Copy link

We have a desire at Confluent to create cgroups for some of our tasks.

Ideally, we'd like to create the cgroup within the slice created by systemd -- however that requires the service to be marked as Delegate=yes.

Furthermore, cgroups have the "no internal process" constraint (https://docs.kernel.org/admin-guide/cgroup-v2.html).

To create enable subtree_control for child cgroups created, the cgroup created by systemd cannot have any processes. Systemd has the feature DelegateSubgroup which will move the systemd process into a nested cgroup to alleviate this constraint.

We have a desire at Confluent to create cgroups for some of our tasks.

Ideally, we'd like to create the cgroup within the slice created by systemd -- however that requires the service to be marked as `Delegate=yes`.

Furthermore, cgroups have the "no internal process" constraint (https://docs.kernel.org/admin-guide/cgroup-v2.html).

To create enable subtree_control for child cgroups created, the cgroup created by systemd cannot have any processes. Systemd has the feature `DelegateSubgroup` which will move the systemd process into a nested cgroup to alleviate this constraint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant