Re: [PATCH v2] cgroup/freezer: add per freezer duty ratio control
From: Andrew Morton
Date: Fri Feb 04 2011 - 19:38:13 EST
On Wed, 2 Feb 2011 16:42:20 -0800
jacob.jun.pan@xxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxx>
> ---
> kernel/cgroup_freezer.c | 109 ++++++++++++++++++++++++++++++++++++++++++++++-
> 1 files changed, 107 insertions(+), 2 deletions(-)
Update the documentation please. Documentation/cgroups/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/