<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 class="gmail_signature"><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 color="#48a830" face="sans-serif" style="font-size:20px"><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 color="#48a830" face="sans-serif" style="font-size:20px"><b>______________________________</b></font><br><br></div></div></div>
</div></div>