Re: [PATCH v2] cgroup/freezer: add per freezer duty ratio control [message #41528] |
Sat, 05 February 2011 00:37 |
akpm
Messages: 224 Registered: March 2007
|
Senior Member |
|
|
On Wed, 2 Feb 2011 16:42:20 -0800
jacob.jun.pan@linux.intel.com wrote:
> Freezer subsystem is used to manage batch jobs which can start
> stop at the same time. However, sometime it is desirable to let
> the kernel manage the freezer state automatically with a given
> duty ratio.
> For example, if we want to reduce the time that backgroup apps
> are allowed to run we can put them into a freezer subsystem and
> set the kernel to turn them THAWED/FROZEN at given duty ratio.
>
> This patch introduces two file nodes under cgroup
> freezer.duty_ratio_pct and freezer.period_sec
>
> Usage example: set period to be 5 seconds and frozen duty ratio 90%
> [root@localhost aoa]# echo 90 > freezer.duty_ratio_pct
> [root@localhost aoa]# echo 5 > freezer.period_sec
>
> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
> ---
> kernel/cgroup_freezer.c | 109 ++++++++++++++++++++++++++++++++++++++++++++++-
> 1 files changed, 107 insertions(+), 2 deletions(-)
Update the documentation please. Documentation/cgroups/
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containe rs
|
|
|