Re: [Libcg-devel] [PATCH]add the value check before set the control file value

2013-09-01 Thread Dhaval Giani
>> > 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

Re: [Libcg-devel] [PATCH]add the value check before set the control file value

2013-09-01 Thread Ivana Varekova
- Original Message - > From: "Weng Meiling" > To: "Dhaval Giani" > Cc: "Ivana Varekova" , "Libcg Development list" > , "libo chen" > , "Balbir Singh" > Sent: Friday, August 23, 2013 3:10:31 AM > Sub

Re: [Libcg-devel] [PATCH]add the value check before set the control file value

2013-08-22 Thread Weng Meiling
t;>> 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 >>> >>> When we use memory subsystem, the memory.oom_cont

Re: [Libcg-devel] [PATCH]add the value check before set the control file value

2013-08-22 Thread Dhaval Giani
On Thu, Aug 22, 2013 at 8:32 AM, Ivana Varekova wrote: > > > - Original Message - >> From: "Weng Meiling" >> To: libcg-devel@lists.sourceforge.net >> Cc: "libo chen" >> Sent: Friday, August 2, 2013 10:27:00 AM >> Subject: [Lib

Re: [Libcg-devel] [PATCH]add the value check before set the control file value

2013-08-22 Thread Ivana Varekova
- Original Message - > From: "Weng Meiling" > To: libcg-devel@lists.sourceforge.net > Cc: "libo chen" > Sent: Friday, August 2, 2013 10:27:00 AM > Subject: [Libcg-devel] [PATCH]add the value check before set the control > file value >

[Libcg-devel] [PATCH]add the value check before set the control file value

2013-08-02 Thread Weng Meiling
From: Weng Meiling 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 conf