<div dir="ltr"><div dir="ltr"><br>> Also, there are bugs in the microstate accounting fixed in OTP-21 that I think still exists in pre OTP-20 versions that caused dirty schedulers to report incorrect statistics. The printout looks very similar to a bug where sleep was accredited to the emulator state.</div><div dir="ltr"><br></div><div dir="ltr">Thanks, Lukas, got it.</div><div dir="ltr"><br></div><div dir="ltr"><div class="gmail_quote"><div dir="ltr">ср, 14 Ð½Ð¾ÑÐ±. 2018 Ð³. Ð² 17:38, Danil Zagoskin <<a href="mailto:z@gosk.in">z@gosk.in</a>>:<br></div><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"><div dir="ltr">Hi!<br><br>Probably it is disk or network I/O.<div><br></div><div>You may use iostat to see if your disk utilization is OK.</div><div>You may use lcnt to see if there are any locks on some port.</div><div>You may use a simple tool I wrote for cases when something is very slow and you don't know what exactly it is: <a href="https://gist.github.com/stolen/9a28ed9403c724541b0ee5fcd822613e" target="_blank">https://gist.github.com/stolen/9a28ed9403c724541b0ee5fcd822613e</a></div></div></div></blockquote><div><br></div><div>Oh, interesting. Will try to use your tool. Thanks</div><div> </div><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"><div dir="ltr"><div></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 14, 2018 at 5:18 PM Alexander Petrovsky <<a href="mailto:askjuise@gmail.com" target="_blank">askjuise@gmail.com</a>> wrote:<br></div><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"><div dir="ltr">Hello!<div><br></div><div>I see the follow debug info, and I would to know, which process and which code utilize only one dirty scheduler? How I can find out it?</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> msacc:start(1000), msacc:print(), msacc:stop().<br>Average thread real-time  Â  : 1000886 us<br>Accumulated system run-time : 3440871 us<br>Average scheduler run-time  :  615277 us<br>  Â  Â  Â  Thread  Â  Â  aux check_io emulator  Â  Â  Â gc  Â  other  Â  Â port  Â  sleep<br>Stats per thread:<br>  Â  Â async( 0)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async( 1)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async( 2)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async( 3)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async( 4)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async( 5)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async( 6)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async( 7)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00% <br>  Â  Â async( 8)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async( 9)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(10)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(11)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(12)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(13)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(14)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(15)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(16)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(17)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(18)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(19)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(20)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(21)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(22)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(23)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(24)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(25)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(26)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(27)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(28)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â async(29)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â  Â aux( 1)  Â  0.13%  Â  0.00%  Â  0.00%  Â  0.00%  Â  8.69%  Â  0.00%  Â 91.18%<br>dirty_cpu_( 1)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_cpu_( 2)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_cpu_( 3)  Â  0.00%  Â  0.00%  Â 89.04%  Â  0.02%  Â  0.00%  Â  0.00%  Â 10.94%<br>dirty_cpu_( 4)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_io_s( 1)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_io_s( 2)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_io_s( 3)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_io_s( 4)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_io_s( 5)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_io_s( 6)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_io_s( 7)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_io_s( 8)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_io_s( 9)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>dirty_io_s(10)  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br> scheduler( 1)  Â  1.45%  Â  1.61%  Â 37.45%  Â  6.11%  Â 15.31%  Â  1.35%  Â 36.72%<br> scheduler( 2)  Â  1.33%  Â  1.24%  Â 35.30%  Â  6.39%  Â 16.21%  Â  1.33%  Â 38.19%<br> scheduler( 3)  Â  1.35%  Â  1.50%  Â 33.85%  Â  5.50%  Â 18.19%  Â  1.48%  Â 38.13%<br> scheduler( 4)  Â  1.59%  Â  1.35%  Â 31.49%  Â  5.14%  Â 18.29%  Â  1.18%  Â 40.95%<br>Stats per type:<br>  Â  Â  Â  Â async  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â  Â  Â  Â aux  Â  0.13%  Â  0.00%  Â  0.00%  Â  0.00%  Â  8.69%  Â  0.00%  Â 91.18%<br>dirty_cpu_sche  Â  0.00%  Â  0.00%  Â 22.26%  Â  0.01%  Â  0.00%  Â  0.00%  Â 77.73%<br>dirty_io_sched  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  Â  0.00%  100.00%<br>  Â  Â scheduler  Â  1.43%  Â  1.42%  Â 34.53%  Â  5.79%  Â 17.00%  Â  1.34%  Â 38.49%</blockquote><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail-m_-6614955329285027599m_434261858782877986gmail_signature"><div dir="ltr"><div><div dir="ltr">Петровский ÐÐ»ÐµÐºÑÐ°Ð½Ð´Ñ€ / Alexander Petrovsky,<br><br>Skype: askjuise<br><div>Phone: +7 931 9877991<div><br></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-6614955329285027599gmail_signature"><div dir="ltr"><div><font face="'courier new', monospace">Danil Zagoskin | <a href="mailto:z@gosk.in" target="_blank">z@gosk.in</a></font></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Петровский ÐÐ»ÐµÐºÑÐ°Ð½Ð´Ñ€ / Alexander Petrovsky,<br><br>Skype: askjuise<br><div>Phone: +7 931 9877991<div><br></div></div></div></div></div></div></div></div>