diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-09-07 00:38:02 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-09-23 16:41:56 +0200 |
commit | b17c7035f37f47c7f7cb08a5555ab2aebfa31f91 (patch) | |
tree | 995c37771f64470dda04e631a8223e74d6713b0a /Documentation/RCU | |
parent | rcu: Handle unbalanced rcu_node configurations with few CPUs (diff) | |
download | linux-b17c7035f37f47c7f7cb08a5555ab2aebfa31f91.tar.xz linux-b17c7035f37f47c7f7cb08a5555ab2aebfa31f91.zip |
rcu: Shrink RCU based on number of CPUs
Currently, rcu_init_geometry() only reshapes RCU's combining trees
if the leaf fanout is changed at boot time. This means that by
default, kernels compiled with (say) NR_CPUS=4096 will keep oversized
data structures, even when running on systems with (say) four CPUs.
This commit therefore checks to see if the maximum number of CPUs on
the actual running system (nr_cpu_ids) differs from NR_CPUS, and if so
reshapes the combining trees accordingly.
Reported-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'Documentation/RCU')
0 files changed, 0 insertions, 0 deletions