[systemd-devel] Separate cpu cgroup parameters

Lennart Poettering lennart at poettering.net
Thu Aug 14 17:35:16 PDT 2014


On Thu, 10.07.14 15:16, Umut Tezduyar Lindskog (umut at tezduyar.com) wrote:

> Hi,
> 
> Even though cpu.shares and cpu.cfs_period_us/cfs_quota_us parameters
> are in the "cpu" cgroup, they can be turned off individually.
> 
> Our kernel only enables cpu.shares property and due to that we see
> error messages.
> 
> systemd[1]: Failed to set cpu.cfs_period_us on
> /system.slice/system-sshd.slice: Permission denied
> systemd[1]: Failed to set cpu.cfs_quota_us on
> /system.slice/system-sshd.slice: Permission denied

Hmm, the cgroup property files do exist, but return EACCESS when they
are not around? That sounds weird...

> 
> Proposed solutions:
> - Should we have separate CGroupControllerMask mask like
> CGROUP_CPU_SHARES & CGROUP_CPU_QUOTA
> OR
> - Should we just ignore the cg_set_attribute() within
> cgroup_context_apply() if setting attribute fails due to missing
> parameter?

Probably, yeah.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list