Skip to content

cgroup/freezer: add per freezer duty ratio control

[email protected] containers linux-pm lkml 15 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest1 patch 21 repliesIn review
  2. v8 posting 2/21 patch 0 repliesSuperseded
  3. v8 posting 1/20 of 1 patch 0 repliesSuperseded
Earlier versions · 12
VersionPostedPatchesRepliesStatus
v7 posting 2/21 patch18 repliesSuperseded
v7 posting 1/20 of 1 patch0 repliesSuperseded
v6 posting 2/21 patch28 repliesSuperseded
v6 posting 1/20 of 1 patch0 repliesSuperseded
v5 posting 2/21 patch0 repliesSuperseded
v5 posting 1/20 of 1 patch0 repliesSuperseded
v4 posting 2/21 patch0 repliesSuperseded
v4 posting 1/21 patch2 repliesSuperseded
v3 posting 3/31 patch0 repliesSuperseded
v3 posting 2/31 patch4 repliesSuperseded
v3 posting 1/31 patch0 repliesSuperseded
v21 patch2 repliesSuperseded

Changelog from the cover letter

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 freezer_write()
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

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1cgroup/freezer: add per freezer duty ratio controlDocumentation/cgroups/freezer-subsystem.txt kernel/cgroup_freezer.c+185 -321 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.

Read the v9 thread

Cover letter [PATCH 0/1, v9] cgroup/freezer: add per freezer duty ratio control

From: Jacob Pan <[email protected]>

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

Changelog:
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 freezer_write()
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

v2:
- 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(-)