lkml.org 
[lkml]   [2008]   [Mar]   [12]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateTue, 11 Mar 2008 21:40:34 -0700
FromAndrew Morton <>
SubjectRe: [PATCH] Add the max_usage member on the res_counter
On Tue, 11 Mar 2008 17:55:46 +0300 Pavel Emelyanov <xemul@openvz.org> wrote:

> This field is the maximal value of the usage one since the counter
> creation (or since the latest reset).
> 
> To reset this to the usage value simply write anything to the
> appropriate cgroup file.

What is the justification for making this change?  Why do we need it? 
Please provide this information for all patches where it is not obvious.

>  	{
> +		.name = "max_usage_in_bytes",
> +		.private = RES_MAX_USAGE,
> +		.write = mem_cgroup_max_reset,
> +		.read_u64 = mem_cgroup_read,
> +	},

Documentation/controllers/memory.txt needs updating.


\
 
 \ /
  Last update: 2008-03-12 05:43    [W:2.129 / U:0.310 seconds]
©2003-2008 Jasper Spaans