On Thu, 10.07.14 15:16, Umut Tezduyar Lindskog (u...@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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to