mirror of
https://github.com/systemd/systemd.git
synced 2025-03-10 16:58:28 +03:00
main: jointly mount more controllers
After talking to the cgroup kernel folks at LPC we came to the conclusion that it is probably a good idea to mount all CPU related resp. all network related cgroup controllers together, both because they are good defaults for admins and because this might prepare for eventual kernel cleanups where the ability to mount them separately is removed.
This commit is contained in:
parent
1946b0bd55
commit
be5412d854
@ -118,7 +118,7 @@
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>JoinControllers=cpu,cpuacct</varname></term>
|
||||
<term><varname>JoinControllers=cpu,cpuacct,cpuset net_cls,netprio</varname></term>
|
||||
|
||||
<listitem><para>Configures controllers
|
||||
that shall be mounted in a single
|
||||
|
@ -1305,12 +1305,13 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
/* By default, mount "cpu" and "cpuacct" together */
|
||||
arg_join_controllers = new(char**, 2);
|
||||
arg_join_controllers = new(char**, 3);
|
||||
if (!arg_join_controllers)
|
||||
goto finish;
|
||||
|
||||
arg_join_controllers[0] = strv_new("cpu", "cpuacct", NULL);
|
||||
arg_join_controllers[1] = NULL;
|
||||
arg_join_controllers[0] = strv_new("cpu", "cpuacct", "cpuset", NULL);
|
||||
arg_join_controllers[1] = strv_new("net_cls", "netprio", NULL);
|
||||
arg_join_controllers[2] = NULL;
|
||||
|
||||
if (!arg_join_controllers[0])
|
||||
goto finish;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#DefaultControllers=cpu
|
||||
#DefaultStandardOutput=journal
|
||||
#DefaultStandardError=inherit
|
||||
#JoinControllers=cpu,cpuacct
|
||||
#JoinControllers=cpu,cpuacct,cpuset net_cls,netprio
|
||||
#RuntimeWatchdogSec=0
|
||||
#ShutdownWatchdogSec=10min
|
||||
#CapabilityBoundingSet=
|
||||
|
Loading…
x
Reference in New Issue
Block a user