Debian Bug report logs - #601757
Please mount cgroup automatically

version graph

Package: initscripts; Maintainer for initscripts is Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>; Source for initscripts is src:sysvinit.

Reported by: Daniel Baumann <mail@daniel-baumann.ch>

Date: Fri, 29 Oct 2010 10:39:05 UTC

Severity: wishlist

Found in version sysvinit/2.88dsf-13.13

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Fri, 29 Oct 2010 10:39:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to daniel@debian.org:
New Bug report received and forwarded. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Fri, 29 Oct 2010 10:39:08 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Please mount cgroup automatically
Date: Fri, 29 Oct 2010 12:36:11 +0200
Package: initscripts
Severity: wishlist
Tag: patch

Hi,

please mount cgroup automatically in mountkernfs. patch will be sent as
soon as the bug number is assigned.

Regards,
Daniel

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/




Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Fri, 29 Oct 2010 10:51:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to daniel@debian.org:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Fri, 29 Oct 2010 10:51:08 GMT) Full text and rfc822 format available.

Message #10 received at 601757@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel@debian.org>
To: 601757@bugs.debian.org
Subject: Re: Please mount cgroup automatically
Date: Fri, 29 Oct 2010 12:48:04 +0200
[Message part 1 (text/plain, inline)]
attached is the patch.

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/
[0002-Automatically-mounting-cgroup-on-sys-fs-cgroup-if-it-is-supported.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Fri, 29 Oct 2010 17:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Henrique de Moraes Holschuh <hmh@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Fri, 29 Oct 2010 17:45:03 GMT) Full text and rfc822 format available.

Message #15 received at 601757@bugs.debian.org (full text, mbox):

From: Henrique de Moraes Holschuh <hmh@debian.org>
To: daniel@debian.org, 601757@bugs.debian.org
Subject: Re: [Pkg-sysvinit-devel] Bug#601757: Please mount cgroup automatically
Date: Fri, 29 Oct 2010 15:43:38 -0200
On Fri, 29 Oct 2010, Daniel Baumann wrote:
> attached is the patch.

[...]

> +		domount cgroup "" /sys/fs/cgroup cgroup -onodev,noexec,nosuid

I like it.  Is this mountpoint "blessed" by someone, since it is inside
/sys?  Are other distros also using this path?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh




Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Fri, 29 Oct 2010 18:36:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to daniel@debian.org:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Fri, 29 Oct 2010 18:36:03 GMT) Full text and rfc822 format available.

Message #20 received at 601757@bugs.debian.org (full text, mbox):

From: Daniel Baumann <daniel@debian.org>
To: Henrique de Moraes Holschuh <hmh@debian.org>
Cc: 601757@bugs.debian.org
Subject: Re: [Pkg-sysvinit-devel] Bug#601757: Please mount cgroup automatically
Date: Fri, 29 Oct 2010 20:33:57 +0200
On 10/29/2010 07:43 PM, Henrique de Moraes Holschuh wrote:
> I like it.  Is this mountpoint "blessed" by someone, since it is inside
> /sys?  Are other distros also using this path?

it's the upstream location to mount it, see comments in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595964
for more information.

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/




Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Wed, 03 Aug 2011 13:12:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raphael Hertzog <hertzog@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Wed, 03 Aug 2011 13:12:03 GMT) Full text and rfc822 format available.

Message #25 received at 601757@bugs.debian.org (full text, mbox):

From: Raphael Hertzog <hertzog@debian.org>
To: 601757@bugs.debian.org
Subject: Re: [Pkg-sysvinit-devel] Bug#601757: Please mount cgroup automatically
Date: Wed, 3 Aug 2011 15:08:59 +0200
On Fri, 29 Oct 2010, Daniel Baumann wrote:
> On 10/29/2010 07:43 PM, Henrique de Moraes Holschuh wrote:
> > I like it.  Is this mountpoint "blessed" by someone, since it is inside
> > /sys?  Are other distros also using this path?
> 
> it's the upstream location to mount it, see comments in
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595964
> for more information.

Ping?

It looks like straightforward to fix, is there a reason why it has not yet
been done?

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
                      ▶ http://RaphaelHertzog.fr (Français)




Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Wed, 30 Nov 2011 21:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marcus Osdoba <marcus.osdoba@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Wed, 30 Nov 2011 21:45:04 GMT) Full text and rfc822 format available.

Message #30 received at 601757@bugs.debian.org (full text, mbox):

From: Marcus Osdoba <marcus.osdoba@googlemail.com>
To: 601757@bugs.debian.org
Subject: Please apply the patch to mount cgroup automatically
Date: Wed, 30 Nov 2011 22:43:27 +0100
Ping, too.

/sys/fs/cgroup is indeed the prefered location. Please mount it 
automatically when available.

Regards,
an lxc user




Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Tue, 06 Dec 2011 11:51:13 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ritesh Raj Sarraf <rrs@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Tue, 06 Dec 2011 11:51:16 GMT) Full text and rfc822 format available.

Message #35 received at 601757@bugs.debian.org (full text, mbox):

From: Ritesh Raj Sarraf <rrs@debian.org>
To: Debian Bug Tracking System <601757@bugs.debian.org>
Subject: Re: Please mount cgroup automatically
Date: Tue, 06 Dec 2011 17:17:38 +0530
Package: initscripts
Version: 2.88dsf-13.13
Followup-For: Bug #601757


Not everyone seems to be of the opinion that a single cgroup mount point
is the right thing to do.

https://github.com/poelzi/ulatencyd/issues/26#issuecomment-3030891

Quoting the author of Ulatency:

 ulatency can be adjusted to a single mountpoint, but as said many
 times, it will suck and make it harder und more complicated to use. CPU
 subsystem is totally broken when Realtime Cgroups is enabled and you
 need constant fixing on that, making it harder with unified mountpoints.
 You can not even create more then one level of in blkio cgroup which
 will make the cpu configuration useless.
 Single mount point of all cgroup subsystems IS A BAD IDEA. You can
 configure it to do so, but it will not help you.



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initscripts depends on:
ii  coreutils       8.13-3       
ii  debianutils     4.0.4        
ii  libc6           2.13-21      
ii  lsb-base        3.2-28       
ii  mount           2.19.1-5     
ii  sysv-rc         2.88dsf-13.13
ii  sysvinit-utils  2.88dsf-13.13

Versions of packages initscripts recommends:
ii  e2fsprogs  1.42~WIP-2011-10-16-1
ii  psmisc     22.14-1              

initscripts suggests no packages.

-- Configuration Files:
/etc/default/bootlogd changed:
BOOTLOGD_ENABLE=Yes


-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Tue, 13 Dec 2011 23:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marcus Osdoba <marcus.osdoba@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Tue, 13 Dec 2011 23:00:03 GMT) Full text and rfc822 format available.

Message #40 received at 601757@bugs.debian.org (full text, mbox):

From: Marcus Osdoba <marcus.osdoba@googlemail.com>
To: 601757@bugs.debian.org
Cc: rrs@debian.org
Subject: Re: Bug#601757: Info received (Please apply the patch to mount cgroup automatically)
Date: Tue, 13 Dec 2011 23:58:19 +0100
[Message part 1 (text/plain, inline)]
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
[mountcgroupsubsys.sh (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Sun, 22 Apr 2012 09:57:31 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marcus Osdoba <marcus.osdoba@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Sun, 22 Apr 2012 09:57:33 GMT) Full text and rfc822 format available.

Message #45 received at 601757@bugs.debian.org (full text, mbox):

From: Marcus Osdoba <marcus.osdoba@googlemail.com>
To: 601757@bugs.debian.org
Subject: updated mountcgroupsubsys.sh
Date: Sun, 22 Apr 2012 11:56:01 +0200
[Message part 1 (text/plain, inline)]
As an lxc user, I like a semi-automatic (distributional way) of setting 
up the needed cgroup-subsystems.
Ubuntu uses a lightweight variant of cgroups-bin (currently blocked in 
wheezy).

As always you may have more than one way to achive a proper cgroup handling.
Attached is my (updated) solution which is an initscript in parallel to 
such as mountdevsubfs.sh and similar.

I use this on Squeeze-server running with latest lxc-7.5.x from Wheezy.
It was never tested together with systemd. All subsystems are mounted in 
their own subdirectories.

Feel free to examine the functionality and reuse it in initscripts for 
future cgroup handling in wheezy.
[mountcgroupsubsys.sh (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Sun, 17 Jun 2012 16:12:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to rrs@researchut.com:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Sun, 17 Jun 2012 16:12:06 GMT) Full text and rfc822 format available.

Message #50 received at 601757@bugs.debian.org (full text, mbox):

From: Ritesh Raj Sarraf <rrs@researchut.com>
To: Debian Bug Tracking System <601757@bugs.debian.org>
Subject: Re: Please mount cgroup automatically
Date: Sun, 17 Jun 2012 21:39:31 +0530
[Message part 1 (text/plain, inline)]
On Tuesday 06 December 2011 05:17 PM, Ritesh Raj Sarraf wrote:
> Not everyone seems to be of the opinion that a single cgroup mount point
> is the right thing to do.
Are there plans on fixing this for Wheezy? Currently, it is broken.

The interesting part is that lxc-checkconfig does not report any errors,
but it does not work in the current state of cgroup.

rrs@champaran:/var/lib/lxc/test1$ sudo lxc-checkconfig
Kernel config /proc/config.gz not found, looking in other places...
Found kernel config file /boot/config-3.4-trunk-amd64
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled

--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig



It would be good to build consensus now on fixing this bug rather than
wait for the last minute.

-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."


[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#601757; Package initscripts. (Wed, 04 Jul 2012 07:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ritesh Raj Sarraf <rrs@researchut.com>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Wed, 04 Jul 2012 07:00:03 GMT) Full text and rfc822 format available.

Message #55 received at 601757@bugs.debian.org (full text, mbox):

From: Ritesh Raj Sarraf <rrs@researchut.com>
To: 645995@bugs.debian.org, Debian Bug Tracking System <601757@bugs.debian.org>
Subject: another workaround
Date: Wed, 04 Jul 2012 12:26:52 +0530
[Message part 1 (text/plain, inline)]
systemd is another application that relies on cgroups for proper
functioning. For users, that have systemd installed and enabled, you
will not see this problem because systemd, by itself, mounts all the
necessary cgroups mount points in the right order.

rrs@champaran:~$ mount | grep -i cgroup
tmpfs on /sys/fs/cgroup type tmpfs
(rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup
(rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuset,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua,clone_children)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuacct,cpu,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua)
cgroup on /sys/fs/cgroup/devices type cgroup
(rw,nosuid,nodev,noexec,relatime,devices,clone_children)
cgroup on /sys/fs/cgroup/freezer type cgroup
(rw,nosuid,nodev,noexec,relatime,freezer,clone_children)
cgroup on /sys/fs/cgroup/net_cls type cgroup
(rw,nosuid,nodev,noexec,relatime,net_cls,clone_children)
cgroup on /sys/fs/cgroup/blkio type cgroup
(rw,nosuid,nodev,noexec,relatime,blkio,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua)
cgroup on /sys/fs/cgroup/perf_event type cgroup
(rw,nosuid,nodev,noexec,relatime,perf_event,clone_children)


-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."


[signature.asc (application/pgp-signature, attachment)]

Changed Bug submitter to 'Daniel Baumann <mail@daniel-baumann.ch>' from 'daniel@debian.org' Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Wed, 12 Jun 2013 13:00:30 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 19:05:29 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.