DZ
Возможно, ты видишь busy_wait.
Покажи msacc за 2 секунды.
Size: a a a
DZ
PK
DZ
PK
PK
(khub@127.0.0.1)2> msacc:start(10000), msacc:print().
Average thread real-time : 10001029 us
Accumulated system run-time : 27038322 us
Average scheduler run-time : 3339088 us
Thread alloc aux bifbusy_wait check_io emulator ets gc gc_full nif other port send sleep timers
Stats per type:
async 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 100.00% 0.00%
aux 0.00% 0.01% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 99.99% 0.00%
dirty_cpu_sche 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 99.99% 0.00%
dirty_io_sched 0.00% 0.00% 0.00% 0.01% 0.00% 0.00% 0.00% 0.00% 0.00% 0.01% 0.00% 0.00% 0.00% 99.99% 0.00%
poll 0.19% 0.00% 0.00% 0.00% 2.86% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 96.95% 0.00%
scheduler 3.51% 1.62% 7.30% 0.28% 0.78% 2.43% 4.00% 2.22% 0.16% 5.28% 1.71% 3.14% 0.89% 66.61% 0.06%
scheduler 4.62% 2.19% 9.85% 0.34% 1.00% 3.27% 1.26% 2.65% 0.19% 4.23% 2.33% 4.14% 1.19% 62.66% 0.09%
DZ
(khub@127.0.0.1)2> msacc:start(10000), msacc:print().
Average thread real-time : 10001029 us
Accumulated system run-time : 27038322 us
Average scheduler run-time : 3339088 us
Thread alloc aux bifbusy_wait check_io emulator ets gc gc_full nif other port send sleep timers
Stats per type:
async 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 100.00% 0.00%
aux 0.00% 0.01% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 99.99% 0.00%
dirty_cpu_sche 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 99.99% 0.00%
dirty_io_sched 0.00% 0.00% 0.00% 0.01% 0.00% 0.00% 0.00% 0.00% 0.00% 0.01% 0.00% 0.00% 0.00% 99.99% 0.00%
poll 0.19% 0.00% 0.00% 0.00% 2.86% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 0.00% 96.95% 0.00%
scheduler 3.51% 1.62% 7.30% 0.28% 0.78% 2.43% 4.00% 2.22% 0.16% 5.28% 1.71% 3.14% 0.89% 66.61% 0.06%
scheduler 4.62% 2.19% 9.85% 0.34% 1.00% 3.27% 1.26% 2.65% 0.19% 4.23% 2.33% 4.14% 1.19% 62.66% 0.09%
PK
DZ
PK
jc
jc
ИИ
ИИ
DZ
erlang:statistics(scheduler_wall_time_all)
)ML
erlang:statistics(scheduler_wall_time_all)
)DZ
jc
DZ
erlang:statistics(scheduler_wall_time_all)
)12> erlang:statistics(scheduler_wall_time_all).
[{1,217000,38687694000},
{4,150000,38687692000},
{2,190000,38687661000},
{3,8564000,38687694000},
...
statistics(total_run_queue_lengths_all)
и вокруг неё. Если там 0 примерно всегда — приложению збсAB
apt install -y build-essential crossbuild-essential-armhf
./otp_build autoconf --host=arm-linux-gnueabihf --build=x86_64-linux-gnu
./configure --enable-bootstrap-only --disable-pgo --without-threadnames
# тут фигня написана
# http://erlang.org/pipermail/erlang-questions/2014-April/078459.html
# тут дело: http://erlang.org/doc/installation_guide/INSTALL-CROSS.html
make -j 5 bootstrap
# а потом уже основной код:
./configure --host=arm-linux-gnueabihf --build=x86_64-linux-gnu --enable-smp-support \
--enable-dynamic-ssl-lib --enable-builtin-zlib \
--without-megaco --without-wx --without-et --without-diameter --without-eldap \
--without-debugger --without-mnesia \
--without-odbc --without-jinterface \
--disable-pgo \
--enable-kernel-poll --without-java --enable-dirty-schedulers $SSL_ERL_FLAGS \
--enable-lock-counter $EXTRAOPTS
AP
12> erlang:statistics(scheduler_wall_time_all).
[{1,217000,38687694000},
{4,150000,38687692000},
{2,190000,38687661000},
{3,8564000,38687694000},
...
statistics(total_run_queue_lengths_all)
и вокруг неё. Если там 0 примерно всегда — приложению збс