<div dir="ltr"><div>Hello!</div><div><br></div>It is most likely the GC that is using the dirty cpu scheduler.<div><br></div><div>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><br><div>Lukas<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 14, 2018 at 3:18 PM Alexander Petrovsky <<a href="mailto:askjuise@gmail.com">askjuise@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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="m_-5542537109000163350gmail_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></div></div></div></div>