[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221017100108.2063-1-thunder.leizhen@huawei.com>
Date: Mon, 17 Oct 2022 18:01:05 +0800
From: Zhen Lei <thunder.leizhen@...wei.com>
To: "Paul E . McKenney" <paulmck@...nel.org>,
Frederic Weisbecker <frederic@...nel.org>,
Neeraj Upadhyay <quic_neeraju@...cinc.com>,
"Josh Triplett" <josh@...htriplett.org>,
Steven Rostedt <rostedt@...dmis.org>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Lai Jiangshan <jiangshanlai@...il.com>,
Joel Fernandes <joel@...lfernandes.org>, <rcu@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: Zhen Lei <thunder.leizhen@...wei.com>
Subject: [PATCH 0/3] rcu: Add RCU stall diagnosis information
In some extreme cases, such as the I/O pressure test, the CPU usage may
be 100%, causing RCU stall. In this case, the printed information about
current is not useful. Displays the number and usage of hard interrupts,
soft interrupts, and context switches that are generated within half of
the CPU stall timeout, can help us make a general judgment. In other
cases, we can preliminarily determine whether an infinite loop occurs
when local_irq, local_bh or preempt is disabled.
Zhen Lei (3):
sched: Add helper kstat_cpu_softirqs_sum()
sched: Add helper nr_context_switches_cpu()
rcu: Add RCU stall diagnosis information
include/linux/kernel_stat.h | 12 +++++++++++
kernel/rcu/tree.h | 11 ++++++++++
kernel/rcu/tree_stall.h | 40 +++++++++++++++++++++++++++++++++++++
kernel/sched/core.c | 5 +++++
4 files changed, 68 insertions(+)
--
2.25.1
Powered by blists - more mailing lists