[Lxc-users] CPU cgroup starts by itself
Fajar A. Nugraha
list at fajar.net
Fri Mar 16 02:51:02 UTC 2012
On Thu, Mar 15, 2012 at 10:18 PM, Goran Cetusic <goran.cetusic at gmail.com> wrote:
> Found the culprit in...wait for it...rc.local!
> Also, there are commands in /etc/bash.bashrc that reference the mounted
> folders so an error pops up whenever you open bash:
>
> /etc/bash.bashrc: mkdir -p -m 0700 /dev/cgroup/cpu/user/$$ > /dev/null
> 2>&1
> /etc/bash.bashrc: echo $$ > /dev/cgroup/cpu/user/$$/tasks
> /etc/bash.bashrc: echo "1" > /dev/cgroup/cpu/user/$$/notify_on_release
>
> /etc/rc.local: mkdir -p /dev/cgroup/cpu
> /etc/rc.local: mount -t cgroup cgroup /dev/cgroup/cpu -o cpu
> /etc/rc.local: mkdir -m 0777 /dev/cgroup/cpu/user
> /etc/rc.local: echo "/usr/local/sbin/cgroup_clean" >
> /dev/cgroup/cpu/release_agent
>
> This is really strange, any ideas why only the cpu group is mounted and in
> such an unorthodox way?
It looks like some settings to make each task more responsive:
http://en.gentoo-wiki.com/wiki/Improve_responsiveness_with_cgroups
You should be able to move the one in rc.local to somewhere standard
(perhaps using /etc/init/cgconfig.conf, or whatever your system uses)
that also mounts other cgroups subsystem.
--
Fajar
More information about the lxc-users
mailing list