Skip to contentSkip to conversation

Documentation updates for 3.13

PATCH In review Paul E. McKenney 3 participants 11 messages Sep 25, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Documentation updates for 3.13

Hello!

This series provides a few documentation updates:

1. Update stall-warning documentation to catch up with recent updates.

2. Add a reference to the new vmstat-avoidance patch to the
file describing how to quiet per-CPU kthreads.

3. Fix a typo in Documentation/RCU/checklist.txt, courtesy of
Michael Opdenacker.

Thanx, Paul

 b/Documentation/RCU/checklist.txt           |    2 +-
 b/Documentation/RCU/stallwarn.txt           |   22 +++++++++++++++-------
 b/Documentation/kernel-per-CPU-kthreads.txt |   17 +++++++++++------
 3 files changed, 27 insertions(+), 14 deletions(-)
#1 lore raw

PATCH 1/3 rcu: Update stall-warning documentation

From: "Paul E. McKenney" <[email protected]>

---
 Documentation/RCU/stallwarn.txt | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)
Documentation/RCU/stallwarn.txt +15 -7
index 8e9359d..6f3a005 100644
@@ -12,12 +12,12 @@ CONFIG_RCU_CPU_STALL_TIMEOUT
 	This kernel configuration parameter defines the period of time
 	that RCU will wait from the beginning of a grace period until it
 	issues an RCU CPU stall warning.  This time period is normally
-	sixty seconds.
+	21 seconds.
 
 	This configuration parameter may be changed at runtime via the
 	/sys/module/rcutree/parameters/rcu_cpu_stall_timeout, however
 	this parameter is checked only at the beginning of a cycle.
-	So if you are 30 seconds into a 70-second stall, setting this
+	So if you are 10 seconds into a 40-second stall, setting this
 	sysfs parameter to (say) five will shorten the timeout for the
 	-next- stall, or the following warning for the current stall
 	(assuming the stall lasts long enough).  It will not affect the
@@ -32,7 +32,7 @@ CONFIG_RCU_CPU_STALL_VERBOSE
 	also dump the stacks of any tasks that are blocking the current
 	RCU-preempt grace period.
 
-RCU_CPU_STALL_INFO
+CONFIG_RCU_CPU_STALL_INFO
 
 	This kernel configuration parameter causes the stall warning to
 	print out additional per-CPU diagnostic information, including
@@ -43,7 +43,8 @@ RCU_STALL_DELAY_DELTA
 	Although the lockdep facility is extremely useful, it does add
 	some overhead.  Therefore, under CONFIG_PROVE_RCU, the
 	RCU_STALL_DELAY_DELTA macro allows five extra seconds before
-	giving an RCU CPU stall warning message.
+	giving an RCU CPU stall warning message.  (This is a cpp
+	macro, not a kernel configuration parameter.)
 
 RCU_STALL_RAT_DELAY
 
@@ -52,7 +53,8 @@ RCU_STALL_RAT_DELAY
 	However, if the offending CPU does not detect its own stall in
 	the number of jiffies specified by RCU_STALL_RAT_DELAY, then
 	some other CPU will complain.  This delay is normally set to
-	two jiffies.
+	two jiffies.  (This is a cpp macro, not a kernel configuration
+	parameter.)
 
 When a CPU detects that it is stalling, it will print a message similar
 to the following:
@@ -86,7 +88,12 @@ printing, there will be a spurious stall-warning message:
 
 INFO: rcu_bh_state detected stalls on CPUs/tasks: { } (detected by 4, 2502 jiffies)
 
-This is rare, but does happen from time to time in real life.
+This is rare, but does happen from time to time in real life.  It is also
+possible for a zero-jiffy stall to be flagged in this case, depending
+on how the stall warning and the grace-period initialization happen to
+interact.  Please note that it is not possible to entirely eliminate this
+sort of false positive without resorting to things like stop_machine(),
+which is overkill for this sort of problem.
 
 If the CONFIG_RCU_CPU_STALL_INFO kernel configuration parameter is set,
 more information is printed with the stall-warning message, for example:
@@ -216,4 +223,5 @@ that portion of the stack which remains the same from trace to trace.
 If you can reliably trigger the stall, ftrace can be quite helpful.
 
 RCU bugs can often be debugged with the help of CONFIG_RCU_TRACE
-and with RCU's event tracing.
+and with RCU's event tracing.  For information on RCU's event tracing,
+see include/trace/events/rcu.h.
Signature · 1 line
1.8.1.5
#2 lore raw

PATCH 2/3 kthread: Add pointer to vmstat-avoidance patch

From: "Paul E. McKenney" <[email protected]>

---
 Documentation/kernel-per-CPU-kthreads.txt | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
Documentation/kernel-per-CPU-kthreads.txt +11 -6
index 32351bf..827104f 100644
@@ -181,12 +181,17 @@ To reduce its OS jitter, do any of the following:
 		make sure that this is safe on your particular system.
 	d.	It is not possible to entirely get rid of OS jitter
 		from vmstat_update() on CONFIG_SMP=y systems, but you
-		can decrease its frequency by writing a large value to
-		/proc/sys/vm/stat_interval.  The default value is HZ,
-		for an interval of one second.  Of course, larger values
-		will make your virtual-memory statistics update more
-		slowly.  Of course, you can also run your workload at
-		a real-time priority, thus preempting vmstat_update().
+		can decrease its frequency by writing a large value
+		to /proc/sys/vm/stat_interval.	The default value is
+		HZ, for an interval of one second.  Of course, larger
+		values will make your virtual-memory statistics update
+		more slowly.  Of course, you can also run your workload
+		at a real-time priority, thus preempting vmstat_update(),
+		but if your workload is CPU-bound, this is a bad idea.
+		However, there is an RFC patch from Christoph Lameter
+		(based on an earlier one from Gilad Ben-Yossef) that
+		reduces or even eliminates vmstat overhead for some
+		workloads at https://lkml.org/lkml/2013/9/4/379.
 	e.	If running on high-end powerpc servers, build with
 		CONFIG_PPC_RTAS_DAEMON=n.  This prevents the RTAS
 		daemon from running on each CPU every second or so.
Signature · 1 line
1.8.1.5
#3 lore raw

PATCH 3/3 rcu: Fix occurrence of "the the" in checklist.txt

In reply to Paul E. McKenney

From: Michael Opdenacker <[email protected]>

---
 Documentation/RCU/checklist.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/RCU/checklist.txt +1 -1
index 7703ec7..ad6cba4 100644
@@ -203,7 +203,7 @@ over a rather long period of time, but improvements are always welcome!
 	the corresponding readers must disable preemption, possibly
 	by calling rcu_read_lock_sched() and rcu_read_unlock_sched().
 	If the updater uses synchronize_srcu() or call_srcu(),
-	the the corresponding readers must use srcu_read_lock() and
+	the corresponding readers must use srcu_read_lock() and
 	srcu_read_unlock(), and with the same srcu_struct.  The rules for
 	the expedited primitives are the same as for their non-expedited
 	counterparts.  Mixing things up will result in confusion and
Signature · 1 line
1.8.1.5
maintainer
#4 lore raw

Re: [PATCH tip/core/rcu 3/3] rcu: Fix occurrence of "the the" in checklist.txt

Quoted 5 lines · Paul E. McKenney

From: Michael Opdenacker <[email protected]>

---

See comment below.

Documentation/RCU/checklist.txt over a rather long period of time, but improvements are always welcome! · line 206

Quoted 13 lines
 Documentation/RCU/checklist.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/RCU/checklist.txt +1 -1
index 7703ec7..ad6cba4 100644
@@ -203,7 +203,7 @@ over a rather long period of time, but improvements are always welcome!
 	the corresponding readers must disable preemption, possibly
 	by calling rcu_read_lock_sched() and rcu_read_unlock_sched().
 	If the updater uses synchronize_srcu() or call_srcu(),
-	the the corresponding readers must use srcu_read_lock() and
+	the corresponding readers must use srcu_read_lock() and

I think this may have actually been a typo for "then", as in "If the updater uses ..., then the corresponding readers must use ...".

Quoted 6 lines
Documentation/RCU/checklist.txt +0 -0
 	srcu_read_unlock(), and with the same srcu_struct.  The rules for
 	the expedited primitives are the same as for their non-expedited
 	counterparts.  Mixing things up will result in confusion and
Signature · 1 line
1.8.1.5
#5 lore raw

Re: [PATCH tip/core/rcu 3/3] rcu: Fix occurrence of "the the" in checklist.txt

Quoted 12 lines · Josh Triplett
Quoted 5 lines · Paul E. McKenney

From: Michael Opdenacker <[email protected]>

---

See comment below.

Quoted 3 lines
 Documentation/RCU/checklist.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

Documentation/RCU/checklist.txt over a rather long period of time, but improvements are always welcome! · line 206

Quoted 10 lines
Documentation/RCU/checklist.txt +1 -1
index 7703ec7..ad6cba4 100644
@@ -203,7 +203,7 @@ over a rather long period of time, but improvements are always welcome!
 	the corresponding readers must disable preemption, possibly
 	by calling rcu_read_lock_sched() and rcu_read_unlock_sched().
 	If the updater uses synchronize_srcu() or call_srcu(),
-	the the corresponding readers must use srcu_read_lock() and
+	the corresponding readers must use srcu_read_lock() and

I think this may have actually been a typo for "then", as in "If the updater uses ..., then the corresponding readers must use ...".

Good point -- that would make the sentence construction parallel with the surrounding sentences. Updated patch below.

Thanx, Paul

Quoted 5 lines
Quoted 5 lines
Documentation/RCU/checklist.txt +0 -0
 	srcu_read_unlock(), and with the same srcu_struct.  The rules for
 	the expedited primitives are the same as for their non-expedited
 	counterparts.  Mixing things up will result in confusion and
Signature · 1 line
1.8.1.5

rcu: Fix occurrence of "the the" in checklist.txt

[ paulmck: Add "then" as suggested by Josh Triplett. ]
Documentation/RCU/checklist.txt +2 -2
index 7703ec7..9126619 100644
@@ -202,8 +202,8 @@ over a rather long period of time, but improvements are always welcome!
 	updater uses call_rcu_sched() or synchronize_sched(), then
 	the corresponding readers must disable preemption, possibly
 	by calling rcu_read_lock_sched() and rcu_read_unlock_sched().
-	If the updater uses synchronize_srcu() or call_srcu(),
-	the the corresponding readers must use srcu_read_lock() and
+	If the updater uses synchronize_srcu() or call_srcu(), then
+	the corresponding readers must use srcu_read_lock() and
 	srcu_read_unlock(), and with the same srcu_struct.  The rules for
 	the expedited primitives are the same as for their non-expedited
 	counterparts.  Mixing things up will result in confusion and
maintainer Reviewed-by
#6 lore raw

Re: [PATCH tip/core/rcu 3/3] rcu: Fix occurrence of "the the" in checklist.txt

Quoted 30 lines · Paul E. McKenney
Quoted 12 lines · Josh Triplett
Quoted 5 lines · Paul E. McKenney

From: Michael Opdenacker <[email protected]>

---

See comment below.

Quoted 3 lines
 Documentation/RCU/checklist.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

Documentation/RCU/checklist.txt over a rather long period of time, but improvements are always welcome! · line 206

Quoted 10 lines
Documentation/RCU/checklist.txt +1 -1
index 7703ec7..ad6cba4 100644
@@ -203,7 +203,7 @@ over a rather long period of time, but improvements are always welcome!
 	the corresponding readers must disable preemption, possibly
 	by calling rcu_read_lock_sched() and rcu_read_unlock_sched().
 	If the updater uses synchronize_srcu() or call_srcu(),
-	the the corresponding readers must use srcu_read_lock() and
+	the corresponding readers must use srcu_read_lock() and

I think this may have actually been a typo for "then", as in "If the updater uses ..., then the corresponding readers must use ...".

Good point -- that would make the sentence construction parallel with the surrounding sentences. Updated patch below.

Quoted 7 lines

Thanx, Paul

rcu: Fix occurrence of "the the" in checklist.txt

[ paulmck: Add "then" as suggested by Josh Triplett. ]
Quoted 16 lines
Documentation/RCU/checklist.txt +2 -2
index 7703ec7..9126619 100644
@@ -202,8 +202,8 @@ over a rather long period of time, but improvements are always welcome!
 	updater uses call_rcu_sched() or synchronize_sched(), then
 	the corresponding readers must disable preemption, possibly
 	by calling rcu_read_lock_sched() and rcu_read_unlock_sched().
-	If the updater uses synchronize_srcu() or call_srcu(),
-	the the corresponding readers must use srcu_read_lock() and
+	If the updater uses synchronize_srcu() or call_srcu(), then
+	the corresponding readers must use srcu_read_lock() and
 	srcu_read_unlock(), and with the same srcu_struct.  The rules for
 	the expedited primitives are the same as for their non-expedited
 	counterparts.  Mixing things up will result in confusion and
#7 lore raw

Re: [PATCH tip/core/rcu 3/3] rcu: Fix occurrence of "the the" in checklist.txt

Quoted 33 lines · Josh Triplett
Quoted 32 lines · Paul E. McKenney
Quoted 12 lines · Josh Triplett
Quoted 5 lines · Paul E. McKenney

From: Michael Opdenacker <[email protected]>

---

See comment below.

Quoted 3 lines
 Documentation/RCU/checklist.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

Documentation/RCU/checklist.txt over a rather long period of time, but improvements are always welcome! · line 206

Quoted 10 lines
Documentation/RCU/checklist.txt +1 -1
index 7703ec7..ad6cba4 100644
@@ -203,7 +203,7 @@ over a rather long period of time, but improvements are always welcome!
 	the corresponding readers must disable preemption, possibly
 	by calling rcu_read_lock_sched() and rcu_read_unlock_sched().
 	If the updater uses synchronize_srcu() or call_srcu(),
-	the the corresponding readers must use srcu_read_lock() and
+	the corresponding readers must use srcu_read_lock() and

I think this may have actually been a typo for "then", as in "If the updater uses ..., then the corresponding readers must use ...".

Good point -- that would make the sentence construction parallel with the surrounding sentences. Updated patch below.

Thanx, Paul

Quoted 7 lines
Quoted 5 lines

rcu: Fix occurrence of "the the" in checklist.txt

[ paulmck: Add "then" as suggested by Josh Triplett. ]

Got it, thank you again!

Thanx, Paul

Quoted 17 lines
Quoted 16 lines
Documentation/RCU/checklist.txt +2 -2
index 7703ec7..9126619 100644
@@ -202,8 +202,8 @@ over a rather long period of time, but improvements are always welcome!
 	updater uses call_rcu_sched() or synchronize_sched(), then
 	the corresponding readers must disable preemption, possibly
 	by calling rcu_read_lock_sched() and rcu_read_unlock_sched().
-	If the updater uses synchronize_srcu() or call_srcu(),
-	the the corresponding readers must use srcu_read_lock() and
+	If the updater uses synchronize_srcu() or call_srcu(), then
+	the corresponding readers must use srcu_read_lock() and
 	srcu_read_unlock(), and with the same srcu_struct.  The rules for
 	the expedited primitives are the same as for their non-expedited
 	counterparts.  Mixing things up will result in confusion and
#8 lore raw

Re: [PATCH tip/core/rcu 3/3] rcu: Fix occurrence of "the the" in checklist.txt

In reply to Josh Triplett
Quoted 25 lines · Josh Triplett
Quoted 24 lines · Paul E. McKenney
Quoted 23 lines · Josh Triplett
Quoted 5 lines · Paul E. McKenney

From: Michael Opdenacker <[email protected]>

---

See comment below.

Documentation/RCU/checklist.txt over a rather long period of time, but improvements are always welcome! · line 206

Quoted 13 lines
 Documentation/RCU/checklist.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/RCU/checklist.txt +1 -1
index 7703ec7..ad6cba4 100644
@@ -203,7 +203,7 @@ over a rather long period of time, but improvements are always welcome!
 	the corresponding readers must disable preemption, possibly
 	by calling rcu_read_lock_sched() and rcu_read_unlock_sched().
 	If the updater uses synchronize_srcu() or call_srcu(),
-	the the corresponding readers must use srcu_read_lock() and
+	the corresponding readers must use srcu_read_lock() and

I think this may have actually been a typo for "then", as in "If the updater uses ..., then the corresponding readers must use ...".

Quoted 4 lines
Quoted 4 lines

Good point -- that would make the sentence construction parallel with the surrounding sentences. Updated patch below.

Thanx, Paul

Good catch! Thanks!

Michael.

Signature · 4 lines
Michael Opdenacker, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
+33 484 258 098
maintainer Reviewed-by on the v1 series
#9 lore raw
In reply to Paul E. McKenney
Quoted 11 lines · Paul E. McKenney

Hello!

This series provides a few documentation updates:

1. Update stall-warning documentation to catch up with recent updates.

2. Add a reference to the new vmstat-avoidance patch to the
file describing how to quiet per-CPU kthreads.

3. Fix a typo in Documentation/RCU/checklist.txt, courtesy of
Michael Opdenacker.

I replied to 3 with a comment; for 1 and 2:

#10 lore raw
Quoted 7 lines · Josh Triplett
Quoted 6 lines · Paul E. McKenney

Hello!

This series provides a few documentation updates:

1. Update stall-warning documentation to catch up with recent updates.

Quoted 8 lines
Quoted 5 lines

2. Add a reference to the new vmstat-avoidance patch to the
file describing how to quiet per-CPU kthreads.

3. Fix a typo in Documentation/RCU/checklist.txt, courtesy of
Michael Opdenacker.

I replied to 3 with a comment; for 1 and 2:

Thank you for the review, applied to 1 and 2.

Thanx, Paul