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

Improve CGroup path-to-unit/slice/etc decoding #46

Open
netbsduser opened this issue Oct 15, 2021 · 0 comments
Open

Improve CGroup path-to-unit/slice/etc decoding #46

netbsduser opened this issue Oct 15, 2021 · 0 comments
Projects

Comments

@netbsduser
Copy link
Member

netbsduser commented Oct 15, 2021

Decoding of CGroup paths into units, slices etc should be improved - right now, for example, if one runs InitWare under systemd using delegation, then the CGroup decoding will give you the systemd unit under which InitWare is running, rather than the InitWare unit.

One approach we could take is to look at unit names in reverse order of components rather than in forward order, as they currently do. This would require some care to avoid confusions.

Another option could be to require that a system-mode scheduler should always run when running InitWare under delegation from systemd, and any user managers run under that one. The system-mode scheduler could publish a file in /var/run/InitWare with its root CGroup path which would be removed before we attempt to resolve CGroup paths to units. This way has the merit of letting us keep these decoding functions with little alteration.

@netbsduser netbsduser added this to To do in CGroups 2.0 via automation Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant