Skip to content

cgroup/rstat: Further reduce cpu_lock hold time in cgroup_rstat_flush_locked

Waiman Long cgroups lkml 5 versions – Applied

Status from this message: Applied to cgroup/for-6.8 with a small comment edit.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 3 repliesApplied
  2. v43 patches 3 repliesSuperseded
  3. v33 patches 6 repliesApplied
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch2 repliesSuperseded
v11 patch2 repliesSuperseded

Changes in v5 from the cover letter

- Drop patch "cgroup/rstat: Reduce cpu_lock hold time in cgroup_rstat_flush_locked()" as it has been merged into the for-6.8 branch.
- Rework the recursive cgroup_rstat_push_children() into an iterative function to prevent possibility of stack overflow.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2cgroup/rstat: Optimize cgroup_rstat_updated_list()kernel/cgroup/rstat.c+91 -622 replies
2/2cgroup: Avoid false cacheline sharing of read mostly rstat_cpuinclude/linux/cgroup-defs.h+7 -01 reply

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH-cgroup v5 0/2] cgroup/rstat: Further reduce cpu_lock hold time in cgroup_rstat_flush_locked

v5:
- Drop patch "cgroup/rstat: Reduce cpu_lock hold time in cgroup_rstat_flush_locked()" as it has been merged into the for-6.8 branch.
- Rework the recursive cgroup_rstat_push_children() into an iterative function to prevent possibility of stack overflow.

v4:
- Update patch 2 to fix a minor bug and update some of the comments.

v3:
- Minor comment twisting as suggested by Yosry.
- Add patches 2 and 3 to further reduce lock hold time

The purpose of this patch series is to further reduce the cpu_lock hold time of cgroup_rstat_flush_locked() so as to reduce the latency impact when cgroup_rstat_updated() is called as they may contend with each other on the cpu_lock.

Waiman Long (2):
cgroup/rstat: Optimize cgroup_rstat_updated_list()
cgroup: Avoid false cacheline sharing of read mostly rstat_cpu

 include/linux/cgroup-defs.h |   7 ++
 kernel/cgroup/rstat.c       | 153 +++++++++++++++++++++---------------
 2 files changed, 98 insertions(+), 62 deletions(-)
Signature · 1 line
2.39.3