<p dir="ltr">If you're running on just one core, then erlang doesn't enable smp or dirty schedulers. Could that be it? </p>
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 14, 2016 4:13 PM, "John Doe" <<a href="mailto:donpedrothird@gmail.com">donpedrothird@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">there's neither smp no ds<div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">Erlang/OTP 19 [erts-8.0.3] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]</span><br>
<br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">1>  erlang:system_info(dirty_cpu_<wbr>schedulers).
</span><br>** exception error: bad argument
<br>     in function  erlang:system_info/1
<br>        called as erlang:system_info(dirty_cpu_<wbr>schedulers)<br>
<br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-15 2:08 GMT+03:00 Steve Vinoski <span dir="ltr"><<a href="mailto:vinoski@ieee.org" target="_blank">vinoski@ieee.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Sun, Aug 14, 2016 at 6:38 PM, John Doe <span dir="ltr"><<a href="mailto:donpedrothird@gmail.com" target="_blank">donpedrothird@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div>got a very strange problem today on a Debian 7.11, gcc <span style="color:rgb(0,0,0);font-family:monospace">4.7.2 </span> VPS<span style="color:rgb(0,0,0);font-family:monospace"> </span>- all apps with dirty schedulers nifs fail with  "{error, {bad_lib, xxx requires a runtime with dirty scheduler support."}}" </div><div><br></div><div>The erlang is built by</div><div>KERL_CONFIGURE_OPTIONS="--disa<wbr>ble-dynamic-ssl-lib  --with-ssl=/usr/ --enable-smp-support  --without-termcap --enable-dirty-schedulers --enable-builtin-zlib" ./kerl build git <a href="https://github.com/erlang/otp.git" target="_blank">https://github.com/erlang/otp.<wbr>git</a> OTP-19.0.4 OTP-19.0.4<br></div><div><br></div><div>This is not problem of the apps, all the apps fail with the same error, I tried <a href="https://github.com/vinoski/bitwise" target="_blank">https://github.com/vinoski/bit<wbr>wise</a> and a couple of other.</div><div><br></div><div>There are no problems altogether with the same apps and the same OTP built with the same command on my home box. Anyway, i tried to build erlang with other flags and with no kerl, nothing changed.</div><div><br></div><div>What could be the reason for that?</div></div></blockquote><div><br></div></span><div>I think the only way you can get that error message is if the runtime is not actually compiled with dirty schedulers enabled. Are you sure you're picking up the right runtime via your path? When you start an erlang shell, does the status line include something like</div><div><br></div><div>    [smp:8:8] [ds:8:8:10]</div><div><br></div><div>or is the "ds" part missing? What do you get if you execute the following in the erlang shell?</div><div><br></div><div>    erlang:system_info(dirty_cpu_s<wbr>chedulers).</div><span><font color="#888888"><div><br></div><div>--steve</div></font></span></div></div></div>
</blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div></div>