On 2013/9/27 11:50, Steve Olivieri wrote: > > >> On 2013/9/27 10:13, Dhaval Giani wrote: >>> On Thu, Sep 26, 2013 at 9:43 PM, Weng Meiling >>> <wengmeiling.w...@huawei.com> wrote: >>>> On 2013/9/27 9:20, Dhaval Giani wrote: >>>>> On Thu, Sep 26, 2013 at 9:05 PM, Weng Meiling >>>>> <wengmeiling.w...@huawei.com> wrote: >>>>>> Hi Ivana, >>>>>> >>>>>> what do you think about this question ? >>>>>> >>>>>> Thanks! >>>>>> Weng Meiling >>>>>> >>>>>> On 2013/9/3 9:25, Weng Meiling wrote: >>>>>>> Hi Ivana, >>>>>>> >>>>>>> what do you think about this question ? >>>>>>> >>>>>>> Thanks! >>>>>>> Weng Meiling >>>>>>> >>>>>>> On 2013/8/9 9:54, Weng Meiling wrote: >>>>>>>> >>>>>>>> From: Weng Meiling <wengmeiling.w...@huawei.com> >>>>>>>> >>>>>>>> Any line starting with '#' in cgconfig.conf is considered a comment >>>>>>>> and is ignored. But in cgrules.conf, no matter where the character >>>>>>>> '#' is, it will be replace with '\0'. So the similar rules get >>>>>>>> different results as following: >>>>>>>> >>>>>>>> the rule: >>>>>>>> *% cpu test >>>>>>>> >>>>>>>> all process will go to cpu's test cgroup, but thr rule: >>>>>>>> *# cpu test >>>>>>>> >>>>> >>>>> Clearly this rule is invalid. So yes, I would expect cgrules to fail. >>>>> (What to do with all processes for all users). I think the behavior is >>>>> just fine. >>>>> >>>>> Dhaval >>>>> >>>>> >>>> yeah, but what do you think the different behaviour between >>>> the two similar rules? the '*#' is invalid because the '#' >>>> means a comment, right? >>>> >>> >>> The two rules are *not* similar. They have specific meanings. The # >>> means, everything following this character on this line is to be >>> ignored. Which leaves with just "*". This by itself is invalid,and >>> therefore the program returns an invalid rule. I am not sure why you >>> are confusing the two. >>> >> It's because in cgconfig.conf the '#' means a comment just when it's in >> the >> starting of a line. So I just think the two configs(cgconfig.conf and >> cgrules.conf) >> should have the same behaviour. As mentioned above, maybe they are >> different. >> > > But *% is a valid rule and *# is not. # always means comment in that > configuration file. It's working as intended. > I got it. Thanks! >> Thanks! >> >>> Thanks! >>> Dhaval >>> >>> >> >> >> ------------------------------------------------------------------------------ >> October Webinars: Code for Performance >> Free Intel webinars can help you accelerate application performance. >> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most >> from >> the latest Intel processors and coprocessors. See abstracts and register > >> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk >> _______________________________________________ >> Libcg-devel mailing list >> Libcg-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/libcg-devel >> > > > >
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel