[osg-users] Processor Affinity and forked processes
Robert Osfield
robert.osfield at gmail.com
Sun Nov 29 05:27:15 PST 2015
Hi Pete,
On 28 November 2015 at 22:48, Pete Black <pete at marchingcubes.com> wrote:
> The logic seems to be if there are more than 1 CPU, and the threadingModel
> is set to singlethreaded (the default), then set CPU affinity (on what is
> very likely the main thread of the application) to 0.
>
> This really seems to be a poor idea - it might help a specific OSG app
> configuration, but silently causes unexpected and almost certainly
> undesirable behaviour in situations where the programmer is doing their own
> multithreading.
>
The OSG is written to work well out of the box for the most common usage -
setting affinity helps for most applications as a threading moving from
core to core thrashes the CPU cache and reduces performance.
Having multiple OSG applications running at the same time is really niche
usage. Applications doing their own threading is also quite niche.
While the defaults might not be doing exactly what you want for particular
application usage I'm comfortable with as long as you can set the controls
as you need. The real question is then for your particular usage model
what do you need to set.
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151129/eb377797/attachment-0002.htm>
More information about the osg-users
mailing list