OpenVZ Forum


Home » Mailing lists » Devel » [RFC][-mm] [0/2] Basic stats for cgroups V2
Re: [RFC][-mm] [0/2] Basic stats for cgroups V2 [message #29188 is a reply to message #29178] Tue, 08 April 2008 13:49 Go to previous messageGo to previous message
Balaji Rao is currently offline  Balaji Rao
Messages: 23
Registered: September 2007
Junior Member
On Tuesday 08 April 2008 01:06:17 pm Paul Menage wrote:
> 
> One of the important API choices would be whether the stats API was
> fixed in header files shared with userspace, or whether it would be
> possible for stats to be added and dynamically discovered/used by
> userspace without needing fixed header file descriptions.
> 
The second idea is much better, I feel.

> The difference would be a bit like the old sysctl API (where each
> sysctl entry had to be enumerated in a header file) versus the newer
> /proc/sys approach where numerical values aren't used and userspace
> can determine which entries are supported at runtime, and even access
> new previously-unknown entries.
> 

<snip>

> 
> Thoughts?

Overall the idea looks good to me.

We are also looking at a generic framework in cgroups that would delegate the 
job of handling statistics to the cgroup framework itself. This would avoid 
code duplication across various controllers.

-- 
regards,
Balaji Rao
_______________________________________________
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: openvz: pull request
Next Topic: [PATCH] Add try_to_remove_exclusive_swap_page stub for CONFIG_SWAP=N
Goto Forum:
  


Current Time: Tue Aug 05 02:38:17 GMT 2025

Total time taken to generate the page: 1.82272 seconds