From 29da0c8bf0b377dcdc7ca489bd783d804f444437 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 29 Dec 2011 10:01:28 -0600 Subject: cgroups: default the size of the tmpfs to 10 mb --- init.d/sysfs.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.d') diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 8809bda..ac6934a 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -65,8 +65,8 @@ mount_misc() if [ -d /sys/fs/cgroup ] && ! mountinfo -q /sys/fs/cgroup; then if grep -qs cgroup /proc/filesystems; then ebegin "Mounting cgroup filesystem" - mount -n -t tmpfs -o nodev,noexec,nosuid,mode=755 \ - cgroup_root /sys/fs/cgroup + local opts="nodev,noexec,nosuid,mode=755,size=${rc_cgroupsize:-10m}" + mount -n -t tmpfs -o ${opts} cgroup_root /sys/fs/cgroup eend $? fi fi -- cgit v1.2.3