Summary: | systemctl started program failed to change scheduling policy | ||
---|---|---|---|
Product: | systemd | Reporter: | zach.wang |
Component: | general | Assignee: | Lennart Poettering <lennart> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | blocker | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | IA64 (Itanium) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
zach.wang
2011-06-16 14:30:27 UTC
systemd by default puts every service in its own cgroup in the "cpu" hierarchy. This unfortunately has the side effect of disallowing RT for it, since we do not assign an RT budget to it (because there is no sane way to come up with one). You can either disable this per-service by using "ControlGroup=cpu:/" in the service file or globally by setting DefaultControllers= in /etc/systemd/system.conf. In the long run we hope this is fixed in the kernel so that we can use the "cpu" hierarchy without assigning an RT budget. I tried both but neither seems to work. For method 1, did you mean to put "ControlGroup=cpu:/" as is in /etc/init.d/fh2 ? For 2, I just uncomment the old line to make it like "DefaultControllers=cpu"? Can you clarify these as I'm not familiar with cgroup? (In reply to comment #1) > systemd by default puts every service in its own cgroup in the "cpu" hierarchy. > This unfortunately has the side effect of disallowing RT for it, since we do > not assign an RT budget to it (because there is no sane way to come up with > one). > > You can either disable this per-service by using "ControlGroup=cpu:/" in the > service file or globally by setting DefaultControllers= in > /etc/systemd/system.conf. > > In the long run we hope this is fixed in the kernel so that we can use the > "cpu" hierarchy without assigning an RT budget. (In reply to comment #2) > I tried both but neither seems to work. For method 1, did you mean to put > "ControlGroup=cpu:/" as is in /etc/init.d/fh2 ? No, ControlGroup= is a setting available only in native unit files, not in SysV/LSB scripts. > For 2, I just uncomment the old > line to make it like "DefaultControllers=cpu"? Can you clarify these as I'm not > familiar with cgroup? The implicit default is "DefaultControllers=cpu", and you should set it to "DefaultControllers=", i.e. remove "cpu" from the line. Cool that worked. Thanks. (In reply to comment #3) |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.