Bug 1962768
Summary: | Logged messages don't get _SYSTEMD_UNIT metadata when process is moved out of sub-cgroup to root cgroup | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Jan Friesse <jfriesse> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED NOTABUG | QA Contact: | Frantisek Sumsal <fsumsal> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | CentOS Stream | CC: | bstinson, cfeist, dtardon, jwboyer, kwenning, msekleta, nwahl, sbradley, systemd-maint-list |
Target Milestone: | beta | Flags: | pm-rhel:
mirror+
|
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-05-24 11:56:48 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jan Friesse
2021-05-20 15:38:53 UTC
Manually moving a process to a different cgroup is unsupported (and has always been). If one does that, one gets to keep the pieces when things break... Anyway, https://lists.freedesktop.org/archives/systemd-devel/2017-July/039210.html suggests how to solve the problem in systemd-compatible way. (Yes, it's still ugly. But it should work.) Closing, as there is no bug here from systemd's POV. @dtardon Thank you for suggestion, but are you talking about ExecStartPost=/bin/cgclassify -g cpu:/ $MAINPID ? Because if it is so, it is doing totally same thing (with cgroup v2) as "manually moving a process" so it has same problem (tested on Fedora Rawhide). Or are you talking about "echo an RT budget into the relevant cgroup files in the "cpu" hierarchy"? Because if so, then you have an idea how to do it? Asking because AFAICT there is currently no way how to affect this with cgroup v2 (https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#cpu - WARNING: cgroup2 doesn’t yet support control of realtime processes and the cpu ...) |