Red Hat Bugzilla – Bug 219457
CONFIG_NR_CPUS is insanely high for fedora
Last modified: 2015-01-04 17:29:32 EST
Description of problem:
The Fedora kernel has CONFIG_NR_CPUS set to 255, which is insanely high.
First of all, no systems exist that can have that many processors or cores (you
run out of apics well before that).
Second, even if they would exist they'd probably not run fedora. (and would cost
a milion bucks or more:0
The downsides are a massive waste of memory; for example just the irq_desc array
alone (in 2.6.19) is more than 2 megabytes just because of this, and a lot of
other things in memory scale likewise with CONFIG_NR_CPUS.
I would suggest a value of no larger than 64 (that also means that cpu bitmasks
fit in a long) for this value ... it wastes a lot less memory and generates a
lot better code in all the cpu mask operations..
fixed in update.