<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi Erlangers,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">It's me again… still trying to understand why my system behaves worse in OTP22 than OTP21.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">The last thing I tried was running <a href="http://erlang.org/doc/man/msacc.html">MicroStateAccounting</a> on it and the results showed something <i>odd</i>…</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">These are two of my summaries for OTP21:</div><div class="gmail_default" style=""><font size="1" style="" face="monospace">Stats per type:<br> Thread <b>aux</b> check_io <b>emulator</b> gc other port sleep<br> async 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 100.00%<br> aux 0.23% 0.06% 0.00% 0.00% 0.09% 0.00% 99.62%<br>dirty_cpu_sche 0.00% 0.00% 0.01% 0.20% 0.00% 0.00% 99.79%<br>dirty_io_sched 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 100.00%<br> poll 0.00% 0.58% 0.00% 0.00% 0.00% 0.00% 99.42%<br> scheduler <b>2.05%</b> 0.56% <b>71.29%</b> 13.25% 3.00% 1.89% 7.96%<br>ok<br><br>Stats per type:<br> async 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 100.00%<br> aux 0.23% 0.07% 0.00% 0.00% 0.08% 0.00% 99.62%<br>dirty_cpu_sche 0.00% 0.00% 0.01% 0.29% 0.00% 0.00% 99.70%<br>dirty_io_sched 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 100.00%<br> poll 0.00% 0.61% 0.00% 0.00% 0.00% 0.00% 99.39%<br> <b>scheduler</b> <b>2.26%</b> 0.56% <b>68.70%</b> 12.69% 3.42% 1.89% 10.48%<br>ok</font><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style=""><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">These are the corresponding two summaries for OTP22 (same period of time, same code, running the same things):</div><div class="gmail_default" style=""><font size="1" style="" face="monospace">Stats per type:<br> Thread <b>aux</b> check_io <b>emulator</b> gc other port sleep<br> async 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 100.00%<br> aux 0.49% 0.06% 0.00% 0.00% 0.28% 0.00% 99.16%<br>dirty_cpu_sche 0.00% 0.00% 0.00% 0.19% 0.00% 0.00% 99.80%<br>dirty_io_sched 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 99.99%<br> poll 0.00% 0.53% 0.00% 0.00% 0.00% 0.00% 99.47%<br> <b>scheduler</b> <b>6.26%</b> 0.52% <b>63.83%</b> 14.41% 3.05% 1.72% 10.20%<br>ok</font></div><div class="gmail_default" style=""><font size="1" style="" face="monospace"><br>Stats per type:<br> async 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 100.00%<br> aux 0.39% 0.07% 0.00% 0.00% 0.18% 0.00% 99.36%<br>dirty_cpu_sche 0.00% 0.00% 0.00% 0.22% 0.00% 0.00% 99.78%<br>dirty_io_sched 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 99.99%<br> poll 0.00% 0.51% 0.00% 0.00% 0.00% 0.00% 99.49%<br> <b>scheduler</b> <b>6.97%</b> 0.54% <b>63.88%</b> 13.73% 3.19% 1.74% 9.96%<br>ok</font><br></div></div><div><br></div><div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">I highlighted the strange/different parts there, but in a nutshell:</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">The scheduler is spending more time <i>handling </i><b><i>auxiliary jobs</i> </b>and less time <i>executing Erlang processes </i>(<a href="http://erlang.org/doc/man/erlang.html#statistics_microstate_accounting">for context</a>).</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Can anybody give me a clue as to what to check next? How can I determine what are those <i><b>auxiliary jobs</b></i> that the scheduler is working on now?</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Thanks in advance :)</div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="left" valign="bottom" width="107" style="line-height:0;vertical-align:bottom;padding-right:10px;padding-top:20px;padding-bottom:20px">
<a href="https://about.me/elbrujohalcon?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb" style="text-decoration:none" target="_blank">
<img src="https://thumbs.about.me/thumbnail/users/e/l/b/elbrujohalcon_emailsig.jpg?_1498084031_146" alt="" width="105" height="70" style="margin:0;padding:0;display:block;border:1px solid #eeeeee">
</a>
</td>
<td align="left" valign="bottom" style="line-height:1.1;vertical-align:bottom;padding-top:20px;padding-bottom:20px">
<img src="https://about.me/t/sig?u=elbrujohalcon" width="1" height="1" style="border:0;margin:0;padding:0;width:1;height:1;overflow:hidden">
<div style="font-size:18px;font-weight:bold;color:#333333;font-family:'Proxima Nova',Helvetica,Arial,sans-serif!important">Brujo Benavides</div>
<a href="https://about.me/elbrujohalcon?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb" style="text-decoration:none;font-size:12px;color:#2b82ad;font-family:'Proxima Nova',Helvetica,Arial,sans-serif!important" target="_blank">about.me/elbrujohalcon
</a>
</td>
</tr>
</tbody>
</table>
</div></div>