OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/3] Consolidate cgroup files creation for resource counters
Re: [PATCH 2/3] Introduce the res_counter_populate() function [message #21272 is a reply to message #21235] Thu, 04 October 2007 06:40 Go to previous messageGo to previous message
Pavel Emelianov is currently offline  Pavel Emelianov
Messages: 1149
Registered: September 2006
Senior Member
Paul Menage wrote:
> On 10/3/07, Pavel Emelyanov <xemul@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
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH 03/33] task containersv11 add tasks file interface
Next Topic: [patch -mm 1/5] mqueue namespace : add struct mq_namespace
Goto Forum:
  


Current Time: Tue Sep 17 23:25:44 GMT 2024

Total time taken to generate the page: 0.04991 seconds