]> git.pld-linux.org Git - packages/libcgroup.git/blobdiff - libcgroup-conf.patch
- new cgroup
[packages/libcgroup.git] / libcgroup-conf.patch
index 38bd40a3223a967520d488b362f236cefa05d3e0..5ff82e387c24296f98ba6b2a94f48fb91e5487cf 100644 (file)
@@ -1,7 +1,7 @@
 diff -ur libcgroup-0.37/samples/cgconfig.conf libcgroup-0.37-conf/samples/cgconfig.conf
 --- libcgroup-0.37/samples/cgconfig.conf       2010-10-20 15:59:13.000000000 +0200
 +++ libcgroup-0.37-conf/samples/cgconfig.conf  2011-02-10 18:05:17.560363010 +0100
-@@ -10,39 +10,19 @@
+@@ -10,39 +10,23 @@
  #  WITHOUT ANY WARRANTY; without even the implied warranty of
  #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  #
@@ -42,19 +42,23 @@ diff -ur libcgroup-0.37/samples/cgconfig.conf libcgroup-0.37-conf/samples/cgconf
 -#     cpu = /mnt/cgroups/cpu;
 -#     cpuacct = /mnt/cgroups/cpuacct;
 -#}
-+# By default, mount all controllers to /dev/cgroup/<controller>
-+
-+mount {
-+      blkio   = /dev/cgroup/blkio;
-+      cpu     = /dev/cgroup/cpu;
-+      cpuacct = /dev/cgroup/cpuacct;
-+      cpuset  = /dev/cgroup/cpuset;
-+#     debug   = /dev/cgroup/debug;
-+      devices = /dev/cgroup/devices;
-+      freezer = /dev/cgroup/freezer;
-+      memory  = /dev/cgroup/memory;
-+      net_cls = /dev/cgroup/net_cls;
-+}
++# By default, mount all controllers to /sys/fs/cgroup/<controller>
++# systemd will mount all of them automatically.
++# For SysV style init to work you need to mount tmpfs on /sys/fs/cgroup
++# first (see /etc/fstab).
++#
++#mount {
++#     blkio   = /sys/fs/cgroup/blkio;
++#     cpu     = /sys/fs/cgroup/cpu;
++#     cpuacct = /sys/fs/cgroup/cpuacct;
++#     cpuset  = /sys/fs/cgroup/cpuset;
++##    debug   = /sys/fs/cgroup/debug;
++#     devices = /sys/fs/cgroup/devices;
++#     freezer = /sys/fs/cgroup/freezer;
++#     memory  = /sys/fs/cgroup/memory;
++#     net_cls = /sys/fs/cgroup/net_cls;
++#     perf_event = /sys/fs/cgroup/perf_event;
++#}
 +
 diff -ur libcgroup-0.37/samples/cgconfig.sysconfig libcgroup-0.37-conf/samples/cgconfig.sysconfig
 --- libcgroup-0.37/samples/cgconfig.sysconfig  2010-10-20 15:59:13.000000000 +0200
This page took 0.060121 seconds and 4 git commands to generate.