Hi Johannes,

On 29/10/10 5:31 , Johannes Scholz wrote:
> When testing this on 64bit Linux we noticed that setProcessorAffinity returns 
> -1.
> Performance does not scale at all. All operations seem to be executed on one 
> CPU.
> I already learned that using pthreads on linux setProcessorAffinity won't 
> work at all?
> The operation system does not seem to automatically apply our threads to 
> different cpus.

It should work just as on Windows.

If you look through the implementation in PThread.c++ you'll notice that there 
are a few
instances where -1 is returned; it would help to find out what exactly is 
happening:
- did cmake fail to find a usable sched_setaffinity()
or
- did the actual call fail

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to