[Devel] Re: [PATCH 1/2] Add the max_usage member on the res_counter
Pavel Emelyanov
xemul at openvz.org
Tue Mar 11 01:41:45 PDT 2008
KAMEZAWA Hiroyuki wrote:
> On Fri, 07 Mar 2008 18:30:55 +0300
> Pavel Emelyanov <xemul at openvz.org> wrote:
>
>> This is a very usefull feature. E.g. one may set the
>> limit to "unlimited" value and check for the memory
>> requirements of a new container.
>>
> Hm, I like this. Could you add a method to reset this counter ?
OK. Sounds reasonable.
> How about
>
> counter->max_usage = max(counter->usage, counter->max_usage);
No, I prefer explicit checks :)
> Looks very good,
>
> Acked-by: Balbir Singh <balbir at linux.vnet.ibm.com>
OK. I'll push this change the the git at openvz.org then.
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list