Skip to content

RFC Disable timer tick for SCHED_FIFO tasks

Jan Blunck linux-rt-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ftrace: Add events for tracing timer interruptsarch/x86/kernel/apic/apic.c arch/x86/kernel/time.c include/trace/events/irq.h+47 -02 replies
2/4ftrace: Add events for tracing tick start and stopinclude/trace/events/sched.h kernel/time/tick-sched.c+56 -50 replies
3/4Disable scheduler tick when we are running SCHED_FIFO taskskernel/sched_rt.c kernel/softirq.c kernel/time/tick-sched.c+32 -38 replies
4/4ftrace: Add argument to tick start/stop tracinginclude/linux/tick.h include/trace/events/sched.h kernel/sched_rt.c +2 more+40 -220 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/4] Disable timer tick for SCHED_FIFO tasks

Here are some patches that I have been working on a few months ago.

For some applications (e.g. FTQ) you can see the jitter that is introduced by the timer tick in the result data set. Therefore the task was to completely disable the timer tick or at least reduce the impact on the application.

This patchset is reusing the infrastructure that disables the timer tick during idle periods to disable it as well when SCHED_FIFO tasks are executed.

The results of the FTQ workload show that the timer tick is getting disabled long periods but the impact of a single interruption seems to increase. Possible, this is due to the fact that the timer tick needs to be enabled again during interrupts.

Other known issues:
- Currently the time accounting is totally broken but that was not the primary focus.

Rants? Thoughts? Complaints?

Jan

Jan Blunck (4):
ftrace: Add events for tracing timer interrupts
ftrace: Add events for tracing tick start and stop Disable scheduler tick when we are running SCHED_FIFO tasks
ftrace: Add argument to tick start/stop tracing

 arch/x86/kernel/apic/apic.c  |    4 +++
 arch/x86/kernel/time.c       |    5 ++++
 include/linux/tick.h         |   14 +++++++++++-
 include/trace/events/irq.h   |   38 ++++++++++++++++++++++++++++++++++
 include/trace/events/sched.h |   46 ++++++++++++++++++++++++++++++++++++++++++
 kernel/sched_rt.c            |   23 +++++++++++++++++++++
 kernel/softirq.c             |    5 ++++
 kernel/time/tick-sched.c     |   40 ++++++++++++++++++++++++-----------
 8 files changed, 160 insertions(+), 15 deletions(-)