----- Original Message ----- > From: "Balbir Singh" <bsinghar...@gmail.com> > To: "Ivana Hutarova Varekova" <varek...@redhat.com> > Cc: libcg-devel@lists.sourceforge.net > Sent: Thursday, September 27, 2012 1:00:36 PM > Subject: Re: [Libcg-devel] [PATCH] cgroup_change_cgroup_flags: create control > template group on the fly > > On Thu, Sep 27, 2012 at 3:45 PM, Ivana Hutarova Varekova > <varek...@redhat.com> wrote: > > cgroup_change_cgroup_flags: if wanted group is template group then > > this patch enables cgroup_change_cgroup_flags procedure to create > > the control group on the fly. It uses > > cgroup_create_cgroup procedure - will be changed in the next patch. > > Template cgroups are control groups which contains % variable like > > %U. > > > > e.g. > > @students devices people/students/%U > > will create a cgroup /people/students/john if user john from group > > students run a command and the people does not exist yet. > > > > Hi, Ivana > > What is the template based upon? Does it inherit values from > people/students when creating people/students/john? > > Balbir >
Hello, no the behaviour is the same as cgconfig.conf. The group is created using cgroup_create_cgroup function. That means parameters are not taken from /people/students but they are empty (see conversation http://sourceforge.net/mailarchive/forum.php?thread_name=502209A3.70809%40redhat.com&forum_name=libcg-devel). In the next patch(es) I will add the possibility to set the values in cgconfig.conf file in the dame way as control groups. There will be new keyword - "template" instead of cgroup. Ivana ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel