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

build: Adding Cgroups unified mode and hybrid mode support #16854

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

Conversation

ishan1993
Copy link

@ishan1993 ishan1993 commented Oct 12, 2023

Signed-off-by: ishahx@google.com

* This change adds appropriate cgroup mounting for the new v2 mode and also the hybrid mode (legacy+v2 both). more info on these 3 cgroup modes is here - https://github.com/systemd/systemd/blob/main/docs/CGROUP_DELEGATION.md#three-different-tree-setups-

* For cgroup v2, building in debian env requires mounting /sys/fs/cgroup as cgroup2 type fs
* Hybrid mode is determined by the type of unified mount fs (as described in the systemd doc linked)
* For  hybrid mode, both old fs and new one needs to be mounted

Signed-off-by: ishahx@google.com
@ishan1993 ishan1993 requested a review from lguohan as a code owner October 12, 2023 02:52
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 12, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: ishan1993 / name: Ishan Shah (436e44f)

@saiarcot895
Copy link
Contributor

/azpw run Azure.sonic-buildimage

@ishan1993
Copy link
Author

/azpw run Azure.sonic-buildimage

thanks!

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.

2 participants