Re: CONFIG_SMP_CPUS

From: Keith Owens (kaos@ocs.com.au)
Date: Sun Jul 09 2000 - 20:01:37 EST


On Sun, 9 Jul 2000 15:51:34 -0400,
willy@thepuffingroup.com wrote:
>we have a lot of arrays which are declared as being NR_CPUS elements large.
>this is clearly suboptimal on the majority of SMP machines which have
>only 2 CPUs. i therefore believe this should be a config option. what
>do you think to this patch?
>+ int 'Maximum number of CPUs to support (1-32)' CONFIG_SMP_CPUS 2

NR_CPUS is not the number of processors. It is the highest processor
number+1; processor numbers do not have to be contiguous. On a machine
that has 2 processors numbered 1 and 4, NR_CPUS must be 5.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:10 EST