[PATCH 2/3] Introduce the res_counter_populate() function

Pavel Emelyanov xemul at openvz.org
Wed Oct 3 23:40:23 PDT 2007


Paul Menage wrote:
> On 10/3/07, Pavel Emelyanov <xemul at openvz.org> wrote:
>> +
>> +       strcpy(files[RES_USAGE].name, "usage_in_bytes");
> 
> This prevents the resource counters from being used for anything that
> doesn't measure its limit/usage in bytes. E.g. number of tasks.
> 
> I like the idea of having a unified interface, but can't they just be
> called "usage" and "limit"?

I see. OK, I will rework the patches to make them more generic. 
Moreover, I've just faced one more race in this set :(

> Paul
> 

Thanks,
Pavel


More information about the Containers mailing list