OpenVZ Forum


Home » Mailing lists » Devel » Re: [PATCH 3/3] memcgoup: allow memory.failcnt to be reset
Re: [PATCH 3/3] memcgoup: allow memory.failcnt to be reset [message #28326 is a reply to message #28190] Thu, 13 March 2008 23:37 Go to previous message
Li Zefan is currently offline  Li Zefan
Messages: 90
Registered: February 2008
Member
Balbir Singh wrote:
> KAMEZAWA Hiroyuki wrote:
>> On Tue, 11 Mar 2008 19:09:02 +0900
>> Li Zefan <lizf@cn.fujitsu.com> wrote:
>>
>>> Allow memory.failcnt to be reset to 0:
>>>
>>>         echo 0 > memory.failcnt
>>>
>>> And '0' is the only valid value.
>>>
>> Can't this be generic resource counter function ?
>>
> 
> I was about to suggest a generic cgroup option, since we do reset values even
> for the cpu accounting subsystem.
> 

It won't help. You still have to write the write function, and you have to call
some res_counter routines to reset the value, and maybe also do some other
work.

_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Previous Topic: [PATCH 1/3] res_counter: introduce res_counter_write_u64()
Next Topic: [PATCH 0/3] Implement triggers for control groups.
Goto Forum:
  


Current Time: Wed Sep 10 07:52:05 GMT 2025

Total time taken to generate the page: 0.13461 seconds