On May 16, 2007, at 11:00 AM, Bert Wesarg wrote:
> Next question: how many bits are needed, the default from the
> cpu_set_t is
> 1024, for big irons this is too few, for a 'small' system too much.
> When
> we introduce this new type, we can specify the size and/or can make
> this
> an configure option. this will limit the portability of a compiled
> library, but reduce memory footprint on systems, where the admin knows
> what he is doing. the linux kernel makes the same, per configure you
> specify max number of supported cpus and max numbers of nodes, and the
> kernel takes the roundup to the size of unsigned long.
A configure-time specification works for me. Paired with an "embed"
option (similar to PLPA), if someone wants to embed the library in
their portable software, they can set the size to be whatever they want.
--
Jeff Squyres
Cisco Systems
|