Subject: Re: [vserver] cgroups handling while vserver start
From: John Alberts <john.m.alberts@gmail.com>
Date: Thu, 22 Jan 2009 07:50:00 -0600

I don't mean to hijack this thread, but I'm curious to learn more
about what vspace and cgroups are, and how they are used in vserver.
I couldn't find any info in the vserver wiki about it.  Can anyone
point me to any documentation?

Thanks,
John



On Thu, Jan 22, 2009 at 6:26 AM, Andreas Baetz <lac01@web.de> wrote:
> Hi,
>
> it seems that during vserver start /usr/sbin/vspace creates a cgroup
> that conflicts with the cgroup to be used when
> creating /etc/vserver/name/cgroup
> Please see below:
>
> # ls -la /dev/cgroup
> total 0
> drwxr-xr-x  3 root root     0 Jan 22 13:02 .
> drwxr-xr-x 12 root root 14700 Jan 22 09:29 ..
> -rw-r--r--  1 root root     0 Jan 22 09:31 cpuacct.usage
> -rw-r--r--  1 root root     0 Jan 22 09:31 devices.allow
> -rw-r--r--  1 root root     0 Jan 22 09:31 devices.deny
> -rw-r--r--  1 root root     0 Jan 22 09:31 devices.list
> -rw-r--r--  1 root root     0 Jan 22 11:24 notify_on_release
> -rw-r--r--  1 root root     0 Jan 22 11:52 release_agent
> -rw-r--r--  1 root root     0 Jan 22 11:53 tasks
>
> # mkdir /etc/vserver/deb4/cgroup
>
> # vserver deb4 start
> /usr/lib/util-vserver/vserver.functions: line
> 1491: /dev/cgroup/deb4/tasks: No such file or directory
>
>
> Failed to start vserver 'deb4'
>
> # ls -la /dev/cgroup
> total 0
> drwxr-xr-x  3 root root     0 Jan 22 13:02 .
> drwxr-xr-x 12 root root 14700 Jan 22 09:29 ..
> drwxr-xr-x  3 root root     0 Jan 22 13:02 26191
> -rw-r--r--  1 root root     0 Jan 22 09:31 cpuacct.usage
> -rw-r--r--  1 root root     0 Jan 22 09:31 devices.allow
> -rw-r--r--  1 root root     0 Jan 22 09:31 devices.deny
> -rw-r--r--  1 root root     0 Jan 22 09:31 devices.list
> -rw-r--r--  1 root root     0 Jan 22 11:24 notify_on_release
> -rw-r--r--  1 root root     0 Jan 22 11:52 release_agent
> -rw-r--r--  1 root root     0 Jan 22 11:53 tasks
>
> That cgroup (in this case 26191) is created while running "exec $_VNAMESPACE --new"
> during the exceution of /usr/sbin/vserver.
>
>
>  # /usr/sbin/vspace --version
> vspace 0.30.216-pre2772 -- manages spaces
> This program is part of util-vserver 0.30.216-pre2772
>
>
> Is there a way to create the right cgroup (deb4) from the beginning ?
>
>
> Andreas
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> **********************************************************************
>
>



-- 
John Alberts