]> git.pld-linux.org Git - packages/libcgroup.git/blob - libcgroup-conf.patch
- rel 2; mount tmpfs for /sys/fs/cgroup if not already mounted
[packages/libcgroup.git] / libcgroup-conf.patch
1 diff -ur libcgroup-0.37/samples/cgconfig.conf libcgroup-0.37-conf/samples/cgconfig.conf
2 --- libcgroup-0.37/samples/cgconfig.conf        2010-10-20 15:59:13.000000000 +0200
3 +++ libcgroup-0.37-conf/samples/cgconfig.conf   2011-02-10 18:05:17.560363010 +0100
4 @@ -10,39 +10,23 @@
5  #  WITHOUT ANY WARRANTY; without even the implied warranty of
6  #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7  #
8 -#group daemons/www {
9 -#      perm {
10 -#              task {
11 -#                      uid = root;
12 -#                      gid = webmaster;
13 -#              }
14 -#              admin {
15 -#                      uid = root;
16 -#                      gid = root;
17 -#              }
18 -#      }
19 -#      cpu {
20 -#              cpu.shares = 1000;
21 -#      }
22 -#}
23 +# See man cgconfig.conf for further details.
24  #
25 -#group daemons/ftp {
26 -#      perm {
27 -#              task {
28 -#                      uid = root;
29 -#                      gid = ftpmaster;
30 -#              }
31 -#              admin {
32 -#                      uid = root;
33 -#                      gid = root;
34 -#              }
35 -#      }
36 -#      cpu {
37 -#              cpu.shares = 500;
38 -#      }
39 -#}
40 -#
41 -#mount {
42 -#      cpu = /mnt/cgroups/cpu;
43 -#      cpuacct = /mnt/cgroups/cpuacct;
44 -#}
45 +# By default, mount all controllers to /sys/fs/cgroup/<controller>
46 +# systemd will mount all of them automatically.
47 +# For SysV style init to work you need to mount tmpfs on /sys/fs/cgroup
48 +# first (see /etc/fstab).
49 +#
50 +#mount {
51 +#      blkio   = /sys/fs/cgroup/blkio;
52 +#      cpu     = /sys/fs/cgroup/cpu;
53 +#      cpuacct = /sys/fs/cgroup/cpuacct;
54 +#      cpuset  = /sys/fs/cgroup/cpuset;
55 +##     debug   = /sys/fs/cgroup/debug;
56 +#      devices = /sys/fs/cgroup/devices;
57 +#      freezer = /sys/fs/cgroup/freezer;
58 +#      memory  = /sys/fs/cgroup/memory;
59 +#      net_cls = /sys/fs/cgroup/net_cls;
60 +#      perf_event = /sys/fs/cgroup/perf_event;
61 +#}
62 +
63 diff -ur libcgroup-0.37/samples/cgconfig.sysconfig libcgroup-0.37-conf/samples/cgconfig.sysconfig
64 --- libcgroup-0.37/samples/cgconfig.sysconfig   2010-10-20 15:59:13.000000000 +0200
65 +++ libcgroup-0.37-conf/samples/cgconfig.sysconfig      2011-02-10 18:06:29.233508500 +0100
66 @@ -5,8 +5,5 @@
67  # controller to limit cpu.shares of this default group and allowing some more
68  # important group take most of the CPU.
69  #
70 -# By default, create these groups:
71 -CREATE_DEFAULT=yes
72 -
73 -# Uncomment following line to disable creation of the default group on startup:
74 -# CREATE_DEFAULT=no
75 +# Don't create default group on startup
76 +CREATE_DEFAULT=no
This page took 0.122032 seconds and 3 git commands to generate.