----- Original Message ----- > From: "Weng Meiling" <wengmeiling.w...@huawei.com> > To: "Dhaval Giani" <dhaval.gi...@gmail.com> > Cc: "Ivana Varekova" <varek...@redhat.com>, "Libcg Development list" > <libcg-devel@lists.sourceforge.net>, "libo chen" > <libo.c...@huawei.com>, "Balbir Singh" <bsinghar...@gmail.com> > Sent: Friday, August 23, 2013 3:10:31 AM > Subject: Re: [Libcg-devel] [PATCH]add the value check before set the control > file value > > On 2013/8/22 20:38, Dhaval Giani wrote: > > On Thu, Aug 22, 2013 at 8:32 AM, Ivana Varekova <varek...@redhat.com> > > wrote: > >> > >> > >> ----- Original Message ----- > >>> From: "Weng Meiling" <wengmeiling.w...@huawei.com> > >>> To: libcg-devel@lists.sourceforge.net > >>> Cc: "libo chen" <libo.c...@huawei.com> > >>> Sent: Friday, August 2, 2013 10:27:00 AM > >>> Subject: [Libcg-devel] [PATCH]add the value check before set the control > >>> file value > >>> > >>> > >>> From: Weng Meiling <wengmeiling.w...@huawei.com> > >>> > >>> When we use memory subsystem, the memory.oom_control value we get like > >>> this: > >>> > >>> oom_kill_disable 0 > >>> under_oom 0 > >>> > >>> but we set the value just by writing a value(0 or 1) like this: > >>> > >>> #echo 1 > memory.oom_control > >>> > >>> so setting the value memory.oom_control by cgset --copy-from or > >>> the config from cgsnapshot will fail, so before setting the control > >>> file value, checking the value and resetting the value. > >>> > >>> Signed-off-by: Weng Meiling <wengmeiling.w...@huawei.com> > >> The solution is not optimal, but it fix the problem which you describes > >> for now. Thus I ack the solution. > >> If there will be no negative reply I will merge it on Tuesday. > > > > I am not convinced this is the best way to solve the problem, or that > > we must even merge it. Yes, it is a problem, but that is just a hack. > > Can we do better? > > > > Dhaval > > > > > yes, the solution seems not optimal. Is it better to do the check in function > cg_set_control_value()? But if do this, the parameter list of this function > should be modified. > > Weng Meiling > Thanks! > > Yes, It is a bit hacky again. But it is improvement and I can't imagine better way without major changes. Thus cote for this solution. Whay is your opinion Dhaval? Ivana > >
------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel