[systemd-devel] issues setting limits on the fly for services/scopes in user slice

Lennart Poettering lennart at poettering.net
Fri May 27 14:27:02 UTC 2016


On Fri, 27.05.16 09:03, jsl6uy js16uy (js16uy at gmail.com) wrote:

> systemctl --user set-property foo.scope CPUQuota='5%'
> or
> systemctl set-property --user --runtime foo.scope CPUQuota='5%'

This is not supported with the classic cgroups hierarchy, as resource
controller delegation to unprivileged clients is not safe. Thus,
setting these properties for "--user" instances has no effect.

For the new cgroups-v2 hierarchy safe delegation to unprivileged
clients is finally supported, but the "cpu" cgroup resource controller
has not been ported over yet to cgroups-v2, hence this isn't available
still either yet, but will be in one of the next kernel and systemd
versions.

Sorry,

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list