[mdlug] Linux Kernel 6.1
Michael Corral
micorral at comcast.net
Fri Dec 23 16:09:17 EST 2022
Le 2022-12-17, Monsieur LAP a ecrit:
> NR_CPUS is set to an actual number of CPUs (FORCE_NR_CPUS) [N/y/?] (NEW)
>
> I had to do some checking and I found that the usual .config
> entry for NR_CPUS involves a range, with the default being 64:
>
> CONFIG_NR_CPUS_RANGE_BEGIN=2
> CONFIG_NR_CPUS_RANGE_END=512
> CONFIG_NR_CPUS_DEFAULT=64
>
> Supposedly, forcing the NR_CPUS to be a specific value will allow
> optimization of kernel routines.
You could already set that with the kernel boot parameter nr_cpus (e.g.
nr_cpus=4) in GRUB for earlier kernels. From what I understand the NR_CPUS
option is really only relevant when you're going to be hotplugging CPUs.
These days there isn't much need to compile your own kernel, since most
distros have things set up so that you can configure via kernel boot
parameters in GRUB or with module options.
More information about the mdlug
mailing list