]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Segregate rcu_state fields to improve cache locality
authorDimitri Sivanich <sivanich@sgi.com>
Fri, 29 Jun 2012 21:17:29 +0000 (14:17 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 6 Jul 2012 13:01:51 +0000 (06:01 -0700)
commit6a5581f7bdf3d478ef2f477629555644db8e46de
tree8d6603af7ce728c92b3d6e8bfcdecd7dc7daea95
parent8732d57a8ce079472f9813fc93b89b7a37d74eb6
rcu: Segregate rcu_state fields to improve cache locality

The fields in the rcu_state structure that are protected by the
root rcu_node structure's ->lock can share a cache line with the
fields protected by ->onofflock.  This can result in excessive
memory contention on large systems, so this commit applies
____cacheline_internodealigned_in_smp to the ->onofflock field in
order to segregate them.

Signed-off-by: Dimitri Sivanich <sivanich@sgi.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Dimitri Sivanich <sivanich@sgi.com>
kernel/rcutree.h