Re: CONFIG_SMP_CPUS

From: Andi Kleen (ak@suse.de)
Date: Mon Jul 10 2000 - 02:03:34 EST


On Sun, Jul 09, 2000 at 03:51:34PM -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?

[...]

I guess it would make more sense to go with the SGI PDA patch
(per process data, cluster all per CPU data in a single structure
that is assigned to a current field in the scheduler)
This saves a lot more space by avoiding lots of cache line alignments
and code space (shorter code to access it). And it has about the same
disastrous consequences to module binary compatibility as your patch.
So when you eat that, why not go the full way ?
Also btw a lot of machines has discontinuous processor numbers.

-Andi

-
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