]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Throttle NOCB kthread grace-period rate
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 May 2014 21:30:53 +0000 (14:30 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 26 Jun 2014 17:59:36 +0000 (10:59 -0700)
commit30fc176aeff55c8dafa29d559353d0a5d4608511
tree37b71cd75b2820dc1348f236ea835def9f1ac0c6
parent089e6eaac804d778c990d7a2281a01450bfd08c0
rcu: Throttle NOCB kthread grace-period rate

On a system with high CPU utilization and high context-switch rates,
grace periods tend to complete quite quickly.  If all CPUs are no-CBs
CPUs, and all are producing at least one callback per grace period, all
the rcuo kthreads will need to be awakened on every grace period, which
on large systems can be an excessive number of wakeups.  This commit
therefore throttles the rcuo kthreads to prevent them from needing
a grace-period wakeup more often than the interval between a pair of
force-quiescent-state scans.

Reported-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c
kernel/rcu/tree_plugin.h