doc: Fix stale RCU_GP_WAIT_FQS value in stallwarn.rst
Subsystems (2)
PATCH 1/1 doc: Fix stale RCU_GP_WAIT_FQS value in stallwarn.rst
The sample "kthread starved" splat in stallwarn.rst shows RCU_GP_WAIT_FQS(3), which was correct when the example was captured, but has been stale since commit fea3f222d352 ("rcu: Record ->gp_state for both phases of grace-period initialization") inserted RCU_GP_ONOFF (3) and RCU_GP_INIT (4) ahead of it, shifting RCU_GP_WAIT_FQS from 3 to 5.
Update the sample output to show (5), matching the current tree.h values and the later "kthread timer wakeup" example in the same file.
--- Documentation/RCU/stallwarn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/RCU/stallwarn.rst +1 -1
@@ -379,7 +379,7 @@ If the relevant grace-period kthread has been unable to run prior to the stall warning, as was the case in the "All QSes seen" line above, the following additional line is printed:: - rcu_sched kthread starved for 23807 jiffies! g7075 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x1 ->cpu=5 + rcu_sched kthread starved for 23807 jiffies! g7075 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x1 ->cpu=5 Unless rcu_sched kthread gets sufficient CPU time, OOM is now expected behavior. Starving the grace-period kthreads of CPU time can of course result
Signature · 1 line
2.34.1
Quoted 7 lines · Yonghao Zhang
The sample "kthread starved" splat in
stallwarn.rstshowsRCU_GP_WAIT_FQS(3), which was correct when the example was captured, but has been stale since commitfea3f222d352("rcu: Record ->gp_state for both phases of grace-period initialization") insertedRCU_GP_ONOFF(3) andRCU_GP_INIT(4) ahead of it, shiftingRCU_GP_WAIT_FQSfrom 3 to 5.
Quoted 5 lines
Update the sample output to show (5), matching the current
tree.hvalues and the later "kthread timer wakeup" example in the same file.Fixes fea3f222d352 ("rcu: Record ->gp_state for both phases of grace-period initialization")Signed-off-by Yonghao Zhang <[email protected]>
Thanks.
Quoted 17 lines
--- Documentation/RCU/stallwarn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/RCU/stallwarn.rst +1
-1@@ -379,7 +379,7 @@ If the relevant grace-period kthread has been unable to run prior to the stall warning, as was the case in the "All QSes seen" line above, the following additional line is printed:: - rcu_sched kthread starved for 23807 jiffies! g7075 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x1 ->cpu=5 + rcu_sched kthread starved for 23807 jiffies! g7075 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x1 ->cpu=5 Unless rcu_sched kthread gets sufficient CPU time, OOM is now expected behavior. Starving the grace-period kthreads of CPU time can of course result
Signature · 1 line
~Randy
Quoted 11 lines · Yonghao Zhang
Quoted 9 lines
The sample "kthread starved" splat in
stallwarn.rstshows
RCU_GP_WAIT_FQS(3), which was correct when the example was captured, but has been stale since commitfea3f222d352("rcu: Record ->gp_state for both phases of grace-period initialization") insertedRCU_GP_ONOFF(3) andRCU_GP_INIT(4) ahead of it, shiftingRCU_GP_WAIT_FQSfrom 3 to 5.
Quoted 7 lines
Quoted 6 lines
Update the sample output to show (5), matching the current
tree.hvalues and the later "kthread timer wakeup" example in the same file.Fixes fea3f222d352 ("rcu: Record ->gp_state for both phases of grace-period initialization")Signed-off-by Yonghao Zhang <[email protected]>Acked-by Randy Dunlap <[email protected]>
Thanks
Zqiang
Quoted 24 lines
Thanks.
Quoted 19 lines
--- Documentation/RCU/stallwarn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git
a/Documentation/RCU/stallwarn.rstb/Documentation/RCU/stallwarn.rstindexb888e13c02a4..049694b9c681100644
---a/Documentation/RCU/stallwarn.rst
+++b/Documentation/RCU/stallwarn.rst
@@ -379,7 +379,7 @@ If the relevant grace-period kthread has been unable to run prior to the stall warning, as was the case in the "All QSes seen" line above,
the following additional line is printed::-
rcu_schedkthread starved for 23807 jiffies! g7075 f0x0RCU_GP_WAIT_FQS(3)->state=0x1 ->cpu=5
+rcu_schedkthread starved for 23807 jiffies! g7075 f0x0RCU_GP_WAIT_FQS(5)->state=0x1 ->cpu=5 Unlessrcu_schedkthread gets sufficient CPU time, OOM is now expected behavior.Starving the grace-period kthreads of CPU time can of course result
Signature · 1 line
~Randy
Joel Fernandes
maintainerQuoted 14 lines · Zqiang
Quoted 14 lines · Yonghao Zhang
Quoted 12 lines
The sample "kthread starved" splat in
stallwarn.rstshows
RCU_GP_WAIT_FQS(3), which was correct when the example was captured, but has been stale since commitfea3f222d352("rcu: Record ->gp_state for both phases of grace-period initialization") insertedRCU_GP_ONOFF(3) andRCU_GP_INIT(4) ahead of it, shiftingRCU_GP_WAIT_FQSfrom 3 to 5.Update the sample output to show (5), matching the current
tree.hvalues and the later "kthread timer wakeup" example in the same file.
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Fixes fea3f222d352 ("rcu: Record ->gp_state for both phases of grace-period initialization")Signed-off-by Yonghao Zhang <[email protected]>Acked-by Randy Dunlap <[email protected]>Reviewed-by Zqiang <[email protected]>
Applying for 7.5 with the tags, thank you!
Joel Fernandes
Quoted 28 lines
Thanks
ZqiangQuoted 24 lines
Thanks.
Quoted 19 lines
--- Documentation/RCU/stallwarn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git
a/Documentation/RCU/stallwarn.rstb/Documentation/RCU/stallwarn.rstindexb888e13c02a4..049694b9c681100644
---a/Documentation/RCU/stallwarn.rst
+++b/Documentation/RCU/stallwarn.rst
@@ -379,7 +379,7 @@ If the relevant grace-period kthread has been unable to run prior to the stall warning, as was the case in the "All QSes seen" line above,
the following additional line is printed::-
rcu_schedkthread starved for 23807 jiffies! g7075 f0x0RCU_GP_WAIT_FQS(3)->state=0x1 ->cpu=5
+rcu_schedkthread starved for 23807 jiffies! g7075 f0x0RCU_GP_WAIT_FQS(5)->state=0x1 ->cpu=5 Unlessrcu_schedkthread gets sufficient CPU time, OOM is now expected behavior.Starving the grace-period kthreads of CPU time can of course result
Signature · 1 line
~Randy