diff options
author | Imran Khan <imran.f.khan@oracle.com> | 2023-05-09 01:31:24 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-07-11 00:19:04 +0300 |
commit | 0d3a00b370424f5f1b9fd037bc8a4a3e7cbf0939 (patch) | |
tree | f8aaac6f2a87ebd06cde951c710984a168695eb5 /scripts/gdb/linux/proc.py | |
parent | 5bd00f6db012f75b42434d39b7fec98b95c1afcc (diff) | |
download | linux-0d3a00b370424f5f1b9fd037bc8a4a3e7cbf0939.tar.xz |
smp: Reduce NMI traffic from CSD waiters to CSD destination
On systems with hundreds of CPUs, if most of the CPUs detect a CSD hang,
then all of these waiting CPUs send an NMI to the destination CPU in
order to dump its backtrace.
Given enough NMIs, the destination CPU will spent much of its time
producing backtraces, thus further delaying that CPU's response to the
original CSD IPI. In the worst case, by the time destination CPU is
done producing all of these backtrace NMIs, the CSD wait timeout will
have elapsed so that the waiters resend their backtrace NMIs again,
further delaying forward progress.
Therefore, to avoid these delays, issue the backtrace NMI only from
the first waiter. The destination CPU's other waiters can make use of
backtrace obtained from the first waiter's NMI.
Signed-off-by: Imran Khan <imran.f.khan@oracle.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions