lkml.org 
[lkml]   [2004]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] cpumask 5/10 rewrite cpumask.h - single bitmap based implementation
William Lee Irwin III wrote:
>> Without any way to reliably determine this, luserspace is fscked.

On Fri, Jun 04, 2004 at 11:42:19AM -0700, Paul Jackson wrote:
> 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.

Wrong. Apps that want to reconfigure the system to e.g. online more cpus
in response to heightened load want to know.


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

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.225 / U:0.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site