aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/RCU/stallwarn.txt
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2014-09-23 01:21:42 -0400
committerIngo Molnar <mingo@kernel.org>2014-09-23 01:21:42 -0400
commit62731433591156ece255e23ffd69ea4544b424f1 (patch)
tree125ce584cdb3166456b1767d03c3d5e72ea79a6e /Documentation/RCU/stallwarn.txt
parent7c9a3730a5ef4c6240eaaa2d8dcdb8cc1627d715 (diff)
parentdd56af42bd829c6e770ed69812bd65a04eaeb1e4 (diff)
Merge branch 'rcu/next' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into core/rcu
Pull the v3.18 RCU changes from Paul E. McKenney: " * Update RCU documentation. These were posted to LKML at https://lkml.org/lkml/2014/8/28/378. * Miscellaneous fixes. These were posted to LKML at https://lkml.org/lkml/2014/8/28/386. An additional fix that eliminates a documented (but now inconvenient) deadlock between RCU hotplug and expedited grace periods was posted at https://lkml.org/lkml/2014/8/28/573. * Changes related to No-CBs CPUs and NO_HZ_FULL. These were posted to LKML at https://lkml.org/lkml/2014/8/28/412. * Torture-test updates. These were posted to LKML at https://lkml.org/lkml/2014/8/28/546 and at https://lkml.org/lkml/2014/9/11/1114. * RCU-tasks implementation. These were posted to LKML at https://lkml.org/lkml/2014/8/28/540. " Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'Documentation/RCU/stallwarn.txt')
-rw-r--r--Documentation/RCU/stallwarn.txt33
1 files changed, 24 insertions, 9 deletions
diff --git a/Documentation/RCU/stallwarn.txt b/Documentation/RCU/stallwarn.txt
index 68fe3ad27015..ef5a2fd4ff70 100644
--- a/Documentation/RCU/stallwarn.txt
+++ b/Documentation/RCU/stallwarn.txt
@@ -56,8 +56,20 @@ RCU_STALL_RAT_DELAY
56 two jiffies. (This is a cpp macro, not a kernel configuration 56 two jiffies. (This is a cpp macro, not a kernel configuration
57 parameter.) 57 parameter.)
58 58
59When a CPU detects that it is stalling, it will print a message similar 59rcupdate.rcu_task_stall_timeout
60to the following: 60
61 This boot/sysfs parameter controls the RCU-tasks stall warning
62 interval. A value of zero or less suppresses RCU-tasks stall
63 warnings. A positive value sets the stall-warning interval
64 in jiffies. An RCU-tasks stall warning starts wtih the line:
65
66 INFO: rcu_tasks detected stalls on tasks:
67
68 And continues with the output of sched_show_task() for each
69 task stalling the current RCU-tasks grace period.
70
71For non-RCU-tasks flavors of RCU, when a CPU detects that it is stalling,
72it will print a message similar to the following:
61 73
62INFO: rcu_sched_state detected stall on CPU 5 (t=2500 jiffies) 74INFO: rcu_sched_state detected stall on CPU 5 (t=2500 jiffies)
63 75
@@ -174,8 +186,12 @@ o A CPU looping with preemption disabled. This condition can
174o A CPU looping with bottom halves disabled. This condition can 186o A CPU looping with bottom halves disabled. This condition can
175 result in RCU-sched and RCU-bh stalls. 187 result in RCU-sched and RCU-bh stalls.
176 188
177o For !CONFIG_PREEMPT kernels, a CPU looping anywhere in the kernel 189o For !CONFIG_PREEMPT kernels, a CPU looping anywhere in the
178 without invoking schedule(). 190 kernel without invoking schedule(). Note that cond_resched()
191 does not necessarily prevent RCU CPU stall warnings. Therefore,
192 if the looping in the kernel is really expected and desirable
193 behavior, you might need to replace some of the cond_resched()
194 calls with calls to cond_resched_rcu_qs().
179 195
180o A CPU-bound real-time task in a CONFIG_PREEMPT kernel, which might 196o A CPU-bound real-time task in a CONFIG_PREEMPT kernel, which might
181 happen to preempt a low-priority task in the middle of an RCU 197 happen to preempt a low-priority task in the middle of an RCU
@@ -208,11 +224,10 @@ o A hardware failure. This is quite unlikely, but has occurred
208 This resulted in a series of RCU CPU stall warnings, eventually 224 This resulted in a series of RCU CPU stall warnings, eventually
209 leading the realization that the CPU had failed. 225 leading the realization that the CPU had failed.
210 226
211The RCU, RCU-sched, and RCU-bh implementations have CPU stall warning. 227The RCU, RCU-sched, RCU-bh, and RCU-tasks implementations have CPU stall
212SRCU does not have its own CPU stall warnings, but its calls to 228warning. Note that SRCU does -not- have CPU stall warnings. Please note
213synchronize_sched() will result in RCU-sched detecting RCU-sched-related 229that RCU only detects CPU stalls when there is a grace period in progress.
214CPU stalls. Please note that RCU only detects CPU stalls when there is 230No grace period, no CPU stall warnings.
215a grace period in progress. No grace period, no CPU stall warnings.
216 231
217To diagnose the cause of the stall, inspect the stack traces. 232To diagnose the cause of the stall, inspect the stack traces.
218The offending function will usually be near the top of the stack. 233The offending function will usually be near the top of the stack.