CONFIG_NR_CPUS

Xose Vazquez Perez xose.vazquez at gmail.com
Sun May 20 22:25:41 UTC 2012


Ruben Kerkhof  wrote:

> It's even higher these days:
>
> grep NR_CPUS /boot/config-2.6.32-220.13.1.el6.x86_64
> CONFIG_NR_CPUS=4096
>
> I'm curious, has anyone measured what the memory overhead is of
> keeping NR_CPUS at 512?
> arch/x86/Kconfig says "This is purely to save memory - each supported
> CPU adds approximately eight kilobytes to the kernel image." If that's
> true, 512 cpus use 4MB, something I'm willing to live with on my 64bit
>  servers.

https://bugzilla.redhat.com/show_bug.cgi?id=219457


More information about the kernel mailing list