<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 1, 2015 at 9:14 PM, Paul Davis <span dir="ltr"><<a href="mailto:paul.joseph.davis@gmail.com" target="_blank">paul.joseph.davis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><span style="color:rgb(34,34,34)">Also, does anyone have a quick pointer to where the busy wait loop is?</span><br></div></div>
After I look at the scheduler time I was going to go find that code<br>
and see if I couldn't come up with a better idea of what exactly might<br>
be changing with that setting.</blockquote><div><br></div><div>This should be the code that does the waiting: <a href="https://github.com/erlang/otp/blob/master/erts/lib_src/pthread/ethr_event.c#L65-L161">https://github.com/erlang/otp/blob/master/erts/lib_src/pthread/ethr_event.c#L65-L161</a></div><div><br></div><div>The mutex implementation that calls it is in here: <a href="https://github.com/erlang/otp/blob/master/erts/lib_src/common/ethr_mutex.c">https://github.com/erlang/otp/blob/master/erts/lib_src/common/ethr_mutex.c</a><br></div><div><br></div><div>The different spin options are set here: <a href="https://github.com/erlang/otp/blob/master/erts/emulator/beam/erl_process.c#L5325-L5364">https://github.com/erlang/otp/blob/master/erts/emulator/beam/erl_process.c#L5325-L5364</a></div><div><br></div><div>There are also a couple of other places where it spind in erl_process.c, just search for spin and you'll find them :)</div></div></div></div>