Skip to content

sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

Dave Chiluk cgroups linux-doc lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest1 patch 4 repliesIn review
  2. v51 patch 7 repliesSuperseded
  3. v31 patch 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch9 repliesSuperseded
v11 patch0 repliesSuperseded

Changes in v6 from the cover letter

- Added back missing call to lsub_positive(&cfs_b->runtime, runtime);
- Added Reviewed-by: Ben Segall <[email protected]>
- Fix some grammar in the Documentation, and change some wording.
- Updated documentation due to the .rst change

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slicesDocumentation/scheduler/sched-bwc.rst kernel/sched/fair.c kernel/sched/sched.h+67 -834 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchBen Segall
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

Changelog v6
- Added back missing call to lsub_positive(&cfs_b->runtime, runtime);
- Added Reviewed-by: Ben Segall <[email protected]>
- Fix some grammar in the Documentation, and change some wording.
- Updated documentation due to the .rst change

Changelog v5
- Based on this comment from Ben Segall's comment on v4

Quoted 4 lines

If the cost of taking this global lock across all cpus without a ratelimit was somehow not a problem, I'd much prefer to just set min_cfs_rq_runtime = 0. (Assuming it is, I definitely prefer the "lie and sorta have 2x period 2x runtime" solution of removing expiration)

I'm resubmitting my v3 patchset, with the requested changes.
- Updated Commit log given review comments
- Update sched-bwc.txt give my new understanding of the slack timer.

Changelog v4
- Rewrote patchset around the concept of returning all of runtime_remaining when cfs_b nears the end of available quota.

Changelog v3
- Reworked documentation to better describe behavior of slice expiration per feedback from Peter Oskolkov

Changelog v2
- Fixed some checkpatch errors in the commit message.