Skip to content

sched, timer: Improve scalability of itimers

Jason Low lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 20 repliesIn review
  2. v13 patches 30 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5sched, timer: Remove usages of ACCESS_ONCE in the schedulerinclude/linux/sched.h kernel/fork.c kernel/sched/auto_group.c +10 more+26 -264 replies
2/5sched, numa: Document usages of mm->numa_scan_seqkernel/sched/fair.c+12 -011 replies
3/5sched, timer: Use atomics in thread_group_cputimer to improve scalabilityinclude/linux/init_task.h include/linux/sched.h kernel/fork.c +2 more+62 -525 replies
4/5sched, timer: Provide an atomic task_cputime data structureinclude/linux/sched.h+17 -01 reply
5/5sched, timer: Use the atomic task_cputime in thread_group_cputimerinclude/linux/init_task.h include/linux/sched.h kernel/sched/stats.h +1 more+19 -231 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRik van RielWaiman Long
1/5A-b A-b
2/5A-b A-b
3/5A-b
4/5A-b
5/5A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/5] sched, timer: Improve scalability of itimers

This patchset improves the scalability of itimers, thread_group_cputimer and addresses a performance issue we found while running a database workload where more than 30% of total time is spent in the kernel trying to acquire the thread_group_cputimer spinlock.

While we're modifying sched and timer, patch 1 also updates all existing usages of ACCESS_ONCE with the new READ_ONCE and WRITE_ONCE APIs in those areas.

Jason Low (5):
sched, timer: Remove usages of ACCESS_ONCE in the scheduler sched, numa: Document usages of mm->numa_scan_seq sched, timer: Use atomics in thread_group_cputimer to improve
scalability
sched, timer: Provide an atomic task_cputime data structure sched, timer: Use the atomic task_cputime in thread_group_cputimer

 include/linux/init_task.h      |    5 +-
 include/linux/sched.h          |   29 +++++++++----
 kernel/fork.c                  |    5 +--
 kernel/sched/auto_group.c      |    2 +-
 kernel/sched/auto_group.h      |    2 +-
 kernel/sched/core.c            |    4 +-
 kernel/sched/cputime.c         |    2 +-
 kernel/sched/deadline.c        |    2 +-
 kernel/sched/fair.c            |   26 +++++++++---
 kernel/sched/proc.c            |    4 +-
 kernel/sched/rt.c              |    2 +-
 kernel/sched/sched.h           |    2 +-
 kernel/sched/stats.h           |   15 ++-----
 kernel/sched/wait.c            |    4 +-
 kernel/time/posix-cpu-timers.c |   87 +++++++++++++++++++++++++---------------
 15 files changed, 113 insertions(+), 78 deletions(-)
Signature · 1 line
1.7.2.5