Romain Vrignaud wrote:
> Hello,
> I'm an IT student and I'm currently working on a Linux Vserver project.
> My purpose is to implement Cgroups control on Vserver.
> In order to affect the right PID of each Vserver to the right cgroup,
> I need to find in the kernel source code the function where a PID is
> bound to a specific Vserver context ( I run currently a 2.6.27.4 with
> Linux Vserver 2.3.0.35.9) . My goal is to rewrite that function to add
> the PID of the process in the good cgroup.
Recent util-vserver versions will already create a cgroup per guest if
the /etc/vservers/.defaults/cgroup directory exists. Doing it in the
kernel is doing it wrong. :-)
--
Daniel Hokka Zakrisson