Package: cgroup-bin Version: 0.37-1 Severity: important
Hello, The default installation seems to use (in /etc/cgconfig.con): cpu = /sys/fs/cgroup cpuacct = /sys/fs/cgroup/cpuacct etc... Is will be cleaner to use a small tmfs mount for /sys/fs/cgroup and then change the above to: cpu = /sys/fs/cgroup/cpu cpuacct = /sys/fs/cgroup/cpuacct etc... The above also causes problems when restarting cgconfig. Using strace it seems that cgconfigparser attempts to rmdir /sys/fs/cgroup (because it is listed in the 'cpu' line) which is not permitted and it fails. Just changing 'cpu' entry (without using a tmpfs mount point) does not fix the problem because it is not possible to create dirs under /sys/fs/cgroup. The problems makes reloading of /etc/cgconfig.conf impossible since /etc/init.d/cgconfig restart fails. Using a small tmpfs seems to solve this. It also solves a minor problem with /etc/init.d/cgred which fails if none of the mounted cgroup partitions is mounted as 'cgroup'. For example, using: mount -t cgroup -o cpu none /sys/fs/cgroup will make /etc/init.d/cgred restart fail because of line 80: if ! grep "^cgroup" /proc/mounts &>/dev/null; then which expects a mount like this one: mount -t cgroup -o cpu cgroup /sys/fs/cgroup Thus, the tmpfs should be mounted with: mount -t tmpfs -o size=1M,mode=755 cgroup /sys/fs/cgroup and it will make the rest of cgroup mountings immune to the init.d/cgred problem. Testing the tmpfs existance is also easy since a touch under it will fail if it is not mounted: if ! touch /sys/fs/cgroup/.test 2>&1 ; then mount -t tmpfs -o size=1M,mode=755 cgroup /sys/fs/cgroup else rm -f /sys/fs/cgroup/.test fi -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.36-v2-v (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages cgroup-bin depends on: ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib ii libcgroup1 0.37-1 A library to control and monitor c cgroup-bin recommends no packages. cgroup-bin suggests no packages. -- Configuration Files: /etc/cgconfig.conf changed [not included] /etc/cgrules.conf changed [not included] /etc/default/cgred changed [not included] -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org