<div dir="ltr"><div><div>Hi Kristofer,<br><br></div>I merged what were supposed to be "fixes" to the OpenThreads from a user submissions between OSG-3.2 and 3.4. The change in behaviour might stem from this, try reverting these changes and see what happens.<br><br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 16 November 2015 at 11:09, Kristofer Tingdahl <span dir="ltr"><<a href="mailto:kristofer.tingdahl@dgbes.com" target="_blank">kristofer.tingdahl@dgbes.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>we just found and solved the most weird bug that was associated with our upgrade from OSG 3.2 to OSG 3.4 .</div><div><br></div><div>Our problem was that our batch programs (i.e. number-crunchers) would only run single threaded when launched from our application, but multi-threaded when launched on the command line.</div><div><br></div><div>After 10 hours debugging, we found out that OSG 3.4 sets the CPU affinity from osgViewer::ViewerBase::startThreading(). When the process forks, this setting is inherited by the new process, and hence limits the new process to only run on one physical CPU.<div><br></div><div>Our solution to this was to let the new processes unset the affinity mask, but I wish to make the community aware of this unwanted effect of OSG 3.4</div><div><br></div><div>Best regards,</div><div><br></div><div><br></div><div>Kristofer Tingdahl</div>-- <br><div><div dir="ltr"><div></div><div><table><tbody><tr><td><font face="sans-serif"><b>Dr. Kristofer Tingdahl</b></font></td></tr><tr><td><font face="sans-serif"><i>Chief Executive Officer</i></font></td></tr></tbody></table><font style="font-size:20px" color="#48a830" face="sans-serif"><b>______________________________</b></font><br><br><table><tbody><tr><td colspan="2"><font face="face="><b>dGB Earth Sciences</b></font></td></tr><tr><td><font face="sans-serif">Phone:</font></td><td><font face="sans-serif"><a style="color:rgb(17,85,204)">+31 53 4315155</a></font></td></tr><tr><td><font face="sans-serif">Skype:</font></td><td><font face="sans-serif">dgbtingdahl</font></td></tr><tr><td><font face="sans-serif">E-mail:</font></td><td><font face="sans-serif"><a href="mailto:kristofer.tingdahl@dgbes.com" style="color:rgb(17,85,204)" target="_blank">kristofer.tingdahl@dgbes.com</a></font></td></tr><tr><td><font face="sans-serif">Internet:</font></td><td><font face="sans-serif"><a href="http://dgbes.com/" style="color:rgb(17,85,204)" target="_blank">dgbes.com</a> & <a href="http://opendtect.org/" style="color:rgb(17,85,204)" target="_blank">opendtect.org</a></font></td></tr></tbody></table><font style="font-size:20px" color="#48a830" face="sans-serif"><b>______________________________</b></font><br><br></div></div></div>
</div></div>
<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>