OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/3] Consolidate cgroup files creation for resource counters (v2)
Re: [PATCH 2/3] Introduce the res_counter_populate() function [message #21300 is a reply to message #21277] Thu, 04 October 2007 15:22 Go to previous messageGo to previous message
Paul Menage is currently offline  Paul Menage
Messages: 642
Registered: September 2006
Senior Member
On 10/4/07, Pavel Emelyanov <xemul@openvz.org> wrote:
> This one is responsible for initializing the RES_CFT_MAX files
> properly and register them inside the container.
>
> The caller must provide the cgroup, the cgroup_subsys, the
> RES_CFT_MAX * sizeof(cftype) chunk of zeroed memory, the
> units of measure and the read and write callbacks.

It would be really nice if we could avoid needing the caller to worry
about the res_counter I/O. See the patch I sent last week entitled
"simplify memory controller and resource counter I/O". It makes use of
the read_unit() and write_unit() methods in res_counters, and combined
with your patch hides all the I/O details from the subsystem.

Paul
_______________________________________________
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 -mm 1/5] mqueue namespace : add struct mq_namespace
Next Topic: netns : close all sockets at unshare ?
Goto Forum:
  


Current Time: Sat Jul 12 04:55:04 GMT 2025

Total time taken to generate the page: 0.01657 seconds