OpenVZ Forum

Home » Mailing lists » Devel » [PATCH 0/1, v9] cgroup/freezer: add per freezer duty ratio control
[PATCH 0/1, v9] cgroup/freezer: add per freezer duty ratio control [message #42077] Tue, 15 February 2011 22:09
jacob.jun.pan is currently offline  jacob.jun.pan
Messages: 40
Registered: December 2010
From: Jacob Pan <>

Fixing subject in cover letter, should be v4 instead of v3

v9: - merged duty ratio related data structs
- removed toggling bit, replaced with freezer->state
- consolidated toggling mode cancellation function
- use spin lock to protect duty ratio parameter writes
- use second as period
- allow 0% and 100% frozen time, aligned behavior with
v8: - minor clean up
v7: - use delayed workqueue instead of per cgroup kernel thread
to manage toggling
- make freezer.state higher priority than duty ratio setting
- small correction in documentation

v6: - remove check for duty ratio == 100 case
v5: - improve error handling in duty ratio/ period writes
- fix the logic to avoid kthread creation when ratio and
period are invalid.
- 100% frozen is not permitted in duty ratio set up

v4: - limit kthread creation only when valid duty ratio
parameters are given.
- changed period back to milisecond
- consolidated paramter write functions

v3: - added documentation

- use read_u64/write_u64 instead of string read/write
- use period in second instead of ms
- renamed duty_ratio to duty_ratio_pct, be more specific
- removed locking around period and duty_ratio reads

Jacob Pan (1):
cgroup/freezer: add per freezer duty ratio control

Documentation/cgroups/freezer-subsystem.txt | 23 ++++++
kernel/cgroup_freezer.c | 109 ++++++++++++++++++++++++++-
2 files changed, 130 insertions(+), 2 deletions(-)

Containers mailing list rs
Read Message
Previous Topic: [PATCH 0/3] procfs wrt pid namespace cleanups
Next Topic: [PATCH 1/1, v9] cgroup/freezer: add per freezer duty ratio control
Goto Forum:

Current Time: Sat Apr 13 09:08:40 GMT 2024

Total time taken to generate the page: 0.01531 seconds