MiCHiLUの日記

 | 

2008-07-04

Erlang process の起動テスト

02:30

ソース http://lab.klab.org/modules/mediawiki/index.php/Erlang_Process

メモリ4GB。3GBくらいならswapしないマシンにて。

$ erl -noshell -run proc start 1
process count: 22
memory total: 5285344
memory processes: 617696
memory processes(user): 18808
spawn time: 4

$ erl -noshell -run proc start 100
process count: 121
memory total: 5507264
memory processes: 839616
memory processes(user): 268144
spawn time: 132

$ erl -noshell -run proc start 10000
process count: 10021
memory total: 30599288
memory processes: 25931640
memory processes(user): 25360168
spawn time: 72709

`+P` オプションを指定する

$ erl -noshell +P 5000100 -run proc start 1000000
process count: 1000021
memory total: 2573817008
memory processes: 2569149360
memory processes(user): 2528839232
spawn time: 7884042

$ erl -noshell +P 5000100 -run proc start 1300000
process count: 1300021
memory total: 3331624088
memory processes: 3326956440
memory processes(user): 3286646312
spawn time: 10897159

`+h` オプションを指定して、ヒープメモリを調整する

$ erl -noshell +h 1 +P 5000100 -run proc start 1300000
process count: 1300021
memory total: 1262136395
memory processes: 1257459400
memory processes(user): 1217007712
spawn time: 7249559

$ erl -noshell +h 1 +P 5000100 -run proc start 3300000
process count: 3300021
memory total: 3145295835
memory processes: 3140618840
memory processes(user): 3100167152
spawn time: 20490068

hibernateを使用する

$ erl -noshell +h 1 +P 5000100 -run proc start 1300000 -hibernate
process count: 1300021
memory total: 918941371
memory processes: 914264280
memory processes(user): 873779144
spawn time: 8157651

$ erl -noshell +h 1 +P 5000100 -run proc start 3300000 -hibernate
process count: 3300021
memory total: 2274100811
memory processes: 2269423720
memory processes(user): 2228938584
spawn time: 20883649

$ erl -noshell +h 1 +P 5000100 -run proc start 4500000 -hibernate
process count: 4500021
memory total: 3077349491
memory processes: 3072672400
memory processes(user): 3032187264
spawn time: 28111856

jj1bdxjj1bdx2008/07/05 21:37景気良くプロセス作ってますねえ.

KarinthiaKarinthia2011/09/18 03:28Hey hey hey, take a gadner at what' you've done

xylncfixylncfi2011/09/18 16:181liPhU <a href="http://xvtyyiswstko.com/">xvtyyiswstko</a>

nqdtrbyhfbwnqdtrbyhfbw2011/09/19 19:00QGkHxR , [url=http://wnyzrcllvffl.com/]wnyzrcllvffl[/url], [link=http://osqerercajtl.com/]osqerercajtl[/link], http://aaewpevntamd.com/

xuqjdlxhlavxuqjdlxhlav2011/09/20 02:00alAzxl <a href="http://znmilrssbmum.com/">znmilrssbmum</a>

tkikmfhxytkikmfhxy2011/09/27 02:01IueHHt , [url=http://pqkqkjetrzax.com/]pqkqkjetrzax[/url], [link=http://xaymgenebwcq.com/]xaymgenebwcq[/link], http://qxygwvgmybse.com/

 |