Skip to content

nohz patches for 3.12 preview

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18nohz: Do not warn about unstable tsc unless user uses nohz_fullkernel/time/tick-sched.c+2 -10 replies
2/18nohz: fix compile warning in tick_nohz_init()kernel/time/tick-sched.c+0 -20 replies
3/18sched: Consolidate open coded preemptible() checkskernel/context_tracking.c kernel/sched/core.c+2 -50 replies
4/18context_tracing: Fix guest accounting with native vtimeinclude/linux/context_tracking.h kernel/context_tracking.c+26 -320 replies
5/18vtime: Update a few commentsinclude/linux/context_tracking.h kernel/sched/cputime.c+9 -62 replies
6/18context_tracking: Fix runtime CPU off-casekernel/context_tracking.c+33 -190 replies
7/18nohz: Selectively enable context tracking on full dynticks CPUsinclude/linux/context_tracking.h init/Kconfig kernel/context_tracking.c +2 more+14 -24 replies
8/18context_tracking: Ground setup for static key useinclude/linux/context_tracking.h kernel/context_tracking.c+22 -60 replies
9/18context_tracking: Optimize main APIs off case with static keyinclude/linux/context_tracking.h kernel/context_tracking.c kernel/sched/cputime.c+47 -340 replies
10/18context_tracking: Optimize context switch off case with static keysinclude/linux/context_tracking.h kernel/context_tracking.c+12 -50 replies
11/18context_tracking: User/kernel broundary cross trace eventsinclude/trace/events/context_tracking.h kernel/context_tracking.c+63 -00 replies
12/18vtime: Remove a few unneeded generic vtime state checkskernel/sched/cputime.c+1 -120 replies
13/18vtime: Fix racy cputime delta updatekernel/sched/cputime.c+2 -10 replies
14/18context_tracking: Split low level state headersinclude/linux/context_tracking.h include/linux/context_tracking_state.h+40 -300 replies
15/18vtime: Describe overriden functions in dedicated arch headersarch/ia64/include/asm/Kbuild arch/powerpc/include/asm/Kbuild arch/s390/include/asm/cputime.h +4 more+14 -30 replies
16/18vtime: Optimize full dynticks accounting off case with static keysinclude/linux/context_tracking.h include/linux/vtime.h kernel/sched/cputime.c+67 -310 replies
17/18vtime: Always scale generic vtime accounting resultskernel/sched/cputime.c+0 -60 replies
18/18vtime: Always debug check snapshot source _before_ updating itkernel/sched/cputime.c+2 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/18] nohz patches for 3.12 preview

Hi,

So patch 1 and 2 are fixes that I'll rather queue for 3.11.

The rest is 3.12 material. There is a strong focus on minimizing the overhead for the full dynticks off case: nohz_full= parameter not passed and CONFIG_NO_HZ_FULL_ALL=n.

I'm working on that because it seems that distros want to enable CONFIG_NO_HZ_FULL and of course they quickly hit the resulting overhead and powersaving issues.

So I tried to optimize the off case with static keys. I hope this will be sufficient. Otherwise the last resort is to create an exception and irq slow path. I believe that x86 irq tracepoints overwrite the IDT for that purpose? At least that was a plan, not sure if we sticked to it but that's just an idea.
At least static keys don't require further arch backend support, expect of course the support for static keys themselves, so I hope that will be enough.

There is one little remaining thing to take care of: let the boot CPU go idle as well in the off case.

I also hope we'll get Paul's patches that allow the timekeeper to go idle in 3.12, but that's another story.

---

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git

	timers/nohz-3.12-preview

Frederic Weisbecker (16):
sched: Consolidate open coded preemptible() checks
context_tracing: Fix guest accounting with native vtime
vtime: Update a few comments
context_tracking: Fix runtime CPU off-case
nohz: Selectively enable context tracking on full dynticks CPUs
context_tracking: Ground setup for static key use
context_tracking: Optimize main APIs off case with static key
context_tracking: Optimize context switch off case with static keys
context_tracking: User/kernel broundary cross trace events
vtime: Remove a few unneeded generic vtime state checks
vtime: Fix racy cputime delta update
context_tracking: Split low level state headers
vtime: Describe overriden functions in dedicated arch headers
vtime: Optimize full dynticks accounting off case with static keys
vtime: Always scale generic vtime accounting results
vtime: Always debug check snapshot source _before_ updating it

Li Zhong (1):
nohz: fix compile warning in tick_nohz_init()

Steven Rostedt (1):
nohz: Do not warn about unstable tsc unless user uses nohz_full

 arch/ia64/include/asm/Kbuild            |    1 +
 arch/powerpc/include/asm/Kbuild         |    1 +
 arch/s390/include/asm/cputime.h         |    3 -
 arch/s390/include/asm/vtime.h           |    7 ++
 arch/s390/kernel/vtime.c                |    1 +
 include/linux/context_tracking.h        |  118 ++++++++++++++--------------
 include/linux/context_tracking_state.h  |   39 ++++++++++
 include/linux/vtime.h                   |   74 ++++++++++++++++--
 include/trace/events/context_tracking.h |   58 ++++++++++++++
 init/Kconfig                            |    2 +-
 kernel/context_tracking.c               |  126 ++++++++++++++++++-------------
 kernel/sched/core.c                     |    4 +-
 kernel/sched/cputime.c                  |   53 ++++---------
 kernel/time/Kconfig                     |    1 -
 kernel/time/tick-sched.c                |    7 ++-
 15 files changed, 327 insertions(+), 168 deletions(-)
 create mode 100644 arch/s390/include/asm/vtime.h
 create mode 100644 include/asm-generic/vtime.h
 create mode 100644 include/linux/context_tracking_state.h
 create mode 100644 include/trace/events/context_tracking.h
Signature · 1 line
1.7.5.4