Skip to content

Commit 007b092

Browse files
paulmckIngo Molnar
authored andcommitted
rcu: Increase RCU CPU stall timeouts if PROVE_RCU
CONFIG_PROVE_RCU imposes additional overhead on the kernel, so increase the RCU CPU stall timeouts in an attempt to allow for this effect. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: laijs@cn.fujitsu.com Cc: dipankar@in.ibm.com Cc: mathieu.desnoyers@polymtl.ca Cc: josh@joshtriplett.org Cc: dvhltc@us.ibm.com Cc: niv@us.ibm.com Cc: peterz@infradead.org Cc: rostedt@goodmis.org Cc: Valdis.Kletnieks@vt.edu Cc: dhowells@redhat.com LKML-Reference: <1267830207-9474-2-git-send-email-paulmck@linux.vnet.ibm.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 3f379b0 commit 007b092

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

‎kernel/rcutree.h‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,21 @@ struct rcu_data {
246246

247247
#define RCU_JIFFIES_TILL_FORCE_QS 3 /* for rsp->jiffies_force_qs */
248248
#ifdef CONFIG_RCU_CPU_STALL_DETECTOR
249-
#define RCU_SECONDS_TILL_STALL_CHECK (10 * HZ) /* for rsp->jiffies_stall */
250-
#define RCU_SECONDS_TILL_STALL_RECHECK (30 * HZ) /* for rsp->jiffies_stall */
251-
#define RCU_STALL_RAT_DELAY 2 /* Allow other CPUs time */
252-
/* to take at least one */
253-
/* scheduling clock irq */
254-
/* before ratting on them. */
249+
250+
#ifdef CONFIG_PROVE_RCU
251+
#define RCU_STALL_DELAY_DELTA (5 * HZ)
252+
#else
253+
#define RCU_STALL_DELAY_DELTA 0
254+
#endif
255+
256+
#define RCU_SECONDS_TILL_STALL_CHECK (10 * HZ + RCU_STALL_DELAY_DELTA)
257+
/* for rsp->jiffies_stall */
258+
#define RCU_SECONDS_TILL_STALL_RECHECK (30 * HZ + RCU_STALL_DELAY_DELTA)
259+
/* for rsp->jiffies_stall */
260+
#define RCU_STALL_RAT_DELAY 2 /* Allow other CPUs time */
261+
/* to take at least one */
262+
/* scheduling clock irq */
263+
/* before ratting on them. */
255264

256265
#endif /* #ifdef CONFIG_RCU_CPU_STALL_DETECTOR */
257266

0 commit comments

Comments
 (0)