]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: support user manager with Condition[Memory/CPU/IO]Pressure
authorLuca Boccassi <luca.boccassi@microsoft.com>
Wed, 1 Dec 2021 14:16:24 +0000 (14:16 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 2 Dec 2021 11:21:06 +0000 (11:21 +0000)
commit68ee5d774cf4a83573ae401e021a0726dec0bb93
treeccf64ca4ce0966877f5feea69b07448cdba6b2c6
parent8feb9fa4f815ed486f725ef83642da70380ceb38
core: support user manager with Condition[Memory/CPU/IO]Pressure

Get the cgroup root path from the current PID, so that when
ran by the user manager we can get to the right path.
Eg: foo.slice:10% will check under:

/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/foo.slice/cpu.pressure

Follow-up for 81513b382b24a7f3602987f71042d075ca27d1a5
src/shared/condition.c