diff options
author | Tom Hromatka <tom.hromatka@oracle.com> | 2017-01-04 15:28:04 -0700 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2017-03-23 12:46:53 -0700 |
commit | 0107042768658fea9f5f5a9c00b1c90f5dab6a06 (patch) | |
tree | ba3a32697a0639266e48b0e1ff7b45f36e4be364 /kernel/time/tick-common.c | |
parent | timers, sched_clock: Update timeout for clock wrap (diff) | |
download | linux-dev-0107042768658fea9f5f5a9c00b1c90f5dab6a06.tar.xz linux-dev-0107042768658fea9f5f5a9c00b1c90f5dab6a06.zip |
sysrq: Reset the watchdog timers while displaying high-resolution timers
On systems with a large number of CPUs, running sysrq-<q> can cause
watchdog timeouts. There are two slow sections of code in the sysrq-<q>
path in timer_list.c.
1. print_active_timers() - This function is called by print_cpu() and
contains a slow goto loop. On a machine with hundreds of CPUs, this
loop took approximately 100ms for the first CPU in a NUMA node.
(Subsequent CPUs in the same node ran much quicker.) The total time
to print all of the CPUs is ultimately long enough to trigger the
soft lockup watchdog.
2. print_tickdevice() - This function outputs a large amount of textual
information. This function also took approximately 100ms per CPU.
Since sysrq-<q> is not a performance critical path, there should be no
harm in touching the nmi watchdog in both slow sections above. Touching
it in just one location was insufficient on systems with hundreds of
CPUs as occasional timeouts were still observed during testing.
This issue was observed on an Oracle T7 machine with 128 CPUs, but I
anticipate it may affect other systems with similarly large numbers of
CPUs.
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Rob Gardner <rob.gardner@oracle.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time/tick-common.c')
0 files changed, 0 insertions, 0 deletions