From 33ef256648564f67db8e6c277e356c9b10e0bb00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 29 Jan 2012 11:22:25 +0000 Subject: [PATCH] - new cgroup - added mount information for systemd and sysv systems Changed files: libcgroup-conf.patch -> 1.5 --- libcgroup-conf.patch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libcgroup-conf.patch b/libcgroup-conf.patch index 4391f75..5ff82e3 100644 --- a/libcgroup-conf.patch +++ b/libcgroup-conf.patch @@ -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. # @@ -43,6 +43,9 @@ diff -ur libcgroup-0.37/samples/cgconfig.conf libcgroup-0.37-conf/samples/cgconf -# cpuacct = /mnt/cgroups/cpuacct; -#} +# By default, mount all controllers to /sys/fs/cgroup/ ++# 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; @@ -54,6 +57,7 @@ diff -ur libcgroup-0.37/samples/cgconfig.conf libcgroup-0.37-conf/samples/cgconf +# 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 -- 2.44.0