[Pkg-sysvinit-devel] Bug#601757: Info received (Please apply the patch to mount cgroup automatically)

Marcus Osdoba marcus.osdoba at googlemail.com
Tue Dec 13 22:58:19 UTC 2011


Hi,
If I got that right, it's ok for the maintainer of ulatencyd, if the 
subsystems were mounted into it's own subdirectories?

If so, I like to propose an intitv script which does it.

When reading the introduction to cgroup in the kernel documentation, it 
is best pratice to mount tmpfs under /sys/fs/cgroup and create a 
subdirectory for every subsystem.

Please see attachement for the script. CGROUPSUBSYSTEMS must be set to 
yes in /etc/default/tmpfs. So cgroup subsystems are not mounted by 
default, which does not break existent configurations done via 
/etc/fstab and one can switch it on/off easily.
The script was tested on Squeeze with 2.6.39-bpo60-2. Activated with 
"update-rc.d mountcgroupsubsys.sh defaults".

Problem: It is very cgroup specific and is possibily misplaced in 
initscripts?

Regards,
Marcus
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mountcgroupsubsys.sh
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20111213/7eba2d7d/attachment-0001.ksh>


More information about the Pkg-sysvinit-devel mailing list