rcu-tasks: Provide boot parameter to delay IPIs until late in grace period
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 17 Mar 2020 18:39:26 +0000 (11:39 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:03:52 +0000 (11:03 -0700)
commitb0afa0f056676ffe0a7213818f09d2460adbcc16
tree4886fdc32d67b8b4ce347d07f65b3bb5d95b5709
parent88092d0c99d7584d50cc8caadb8fa9ff8a1d4ea0
rcu-tasks: Provide boot parameter to delay IPIs until late in grace period

This commit provides a rcupdate.rcu_task_ipi_delay kernel boot parameter
that specifies how old the RCU tasks trace grace period must be before
the grace-period kthread starts sending IPIs.  This delay allows more
tasks to pass through rcu_tasks_qs() quiescent states, thus reducing
(or even eliminating) the number of IPIs that must be sent.

On a short rcutorture test setting this kernel boot parameter to HZ/2
resulted in zero IPIs for all 877 RCU-tasks trace grace periods that
elapsed during that test.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/rcu/tasks.h