Re: [PATCH] cpumask 5/10 rewrite cpumask.h - single bitmap based implementation

Paul Jackson
2004-06-04T18:37:32Z

William Lee Irwin III wrote:
> Without any way to reliably determine this, luserspace is fscked.

I don't see why user code needs to determine NR_CPUS exactly. Any
reasonable upper bound should work - reasonable meaning doesn't waste
too many unused words of memory.

It's not really NR_CPUS that users need - its a reasonably close upper
bound to the size of the space that sched_getaffinity() must be provided
they need. And your code does a pretty good job of providing that.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373