You are not logged in.

#1 2013-01-09 17:03:17

lahwaacz
Wiki Admin
From: Czech Republic
Registered: 2012-05-29
Posts: 776

systemd --user can't create cpu cgroup

Hi,
recently I've started using 'systemd --user' to manage my sessions. I've followed the wiki and created xorg.service and several others. Then I configured cgroup controllers in /etc/systemd/{system.conf,logind.conf,user.conf} as follows (only relevant changes are shown):

$ logind.conf
[Login]
Controllers=cpu memory blkio
ResetControllers=
$ system.conf 
[Manager]
DefaultControllers=cpu memory blkio
#JoinControllers=cpu,cpuacct,cpuset net_cls,net_prio
$ user.conf
[Manager]
DefaultControllers=cpu memory blkio

When I start 'systemd --user', I get the following error (systemd starts fine, but cpu controller for user isn't created):

Failed to create cgroup cpu:/user/lahwaacz/8/systemd-11815/xorg.service: Permission denied

edit: the error shows up for every service started, not just for xorg.service

I guess this is why the default is 'ResetControllers=cpu', but haven't found anything specific to the error. Anyone has experiences with similar issues, or anything helpful?
Thanks

Last edited by lahwaacz (2013-01-09 17:09:00)

Offline

Board footer

Powered by FluxBB