MiCHiLUの日記

2008-07-21

Installing Erlang, CentOS 5.2 on VMware Fusion

11:54

$ ./configure --enable-threads --enable-kernel-poll
...
configure: error: No curses library functions found
...
$ sudo yum install ncurses-devel

ncursesに依存してるようだけど入ってなかったのでyum install。

気を取り直して。

$ ./configure --enable-threads --enable-kernel-poll
$ make
$ sudo make install

$ erl
Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0] [hipe] [kernel-poll:false]

JoyelleJoyelle2011/09/18 08:50All of my qeutsoins settled-thanks!

emniulremniulr2011/09/18 16:24tbpjI7 <a href="http://xbojwnpwdirb.com/">xbojwnpwdirb</a>

fmqqezhfmqqezh2011/09/19 18:42nPSGsN , [url=http://ocfkbwqzvsye.com/]ocfkbwqzvsye[/url], [link=http://gkidnjmnibnh.com/]gkidnjmnibnh[/link], http://pfrfxwqszjzo.com/

izghyzizghyz2011/09/20 01:35fCYzIF <a href="http://plxcjuybhihd.com/">plxcjuybhihd</a>

jdvbyzvynpjdvbyzvynp2011/09/27 01:46YBBYwi , [url=http://hktaklupzkqq.com/]hktaklupzkqq[/url], [link=http://afmzhrqktpcm.com/]afmzhrqktpcm[/link], http://ezflcgdsvwsh.com/

GontzalGontzal2013/08/09 01:07Smart thninikg - a clever way of looking at it.

WhitneyWhitney2013/08/09 23:59Hi, Humming Bird. I just wanted to say thank you so much for<a href="http://xfjoggufe.com"> tiakng</a> the time to tell others about what is going on and being a warrior for God. I am a Police Officer and I am able to drive around and patrol while listening.I know God will bless you for all your hard work. Thanks so much ! God Bless, Malinda

AdilAdil2013/08/15 19:24Woah nelly, how about them aplesp! http://pggtoo.com [url=http://qzpfpcxltoq.com]qzpfpcxltoq[/url] [link=http://dgeoxgza.com]dgeoxgza[/link]

AambicifieftAambicifieft2018/03/13 22:18 The ED resulting from that surgery could be either temporary or permanent. Once you discover the very best natural treatments, you can again have full charge of your sexual pleasures.
https://www.cialissansordonnancefr24.com/le-meilleur-cialis/

2008-07-19

building Persistent Lookup Table (PLT)

22:46

dialyzerで必要なpltファイルを作る。

時間がかかるので、まったりと。

$ dialyzer --build_plt -r $ERL_TOP/lib/kernel/ebin $ERL_TOP/lib/stdlib/ebin $ERL_TOP/lib/mnesia/ebin
  Creating PLT ~/.dialyzer_plt ...
Unknown functions:
  compile:file/2
  compile:forms/2
  compile:noenv_forms/2
  compile:output_generated/1
  crypto:des3_cbc_decrypt/5
  crypto:start/0
 done in 17m50.35s
done (passed successfully)

$ ll ~/.dialyzer_plt
-rw-r--r-- ... 148K ... ~/.dialyzer_plt

$ dialyzer --add_to_plt -r $ERL_TOP/lib/compiler/ebin
  Adding information to ~/.dialyzer_plt...
Unknown functions:
  crypto:des3_cbc_decrypt/5
  crypto:des3_cbc_encrypt/5
  crypto:start/0
  hipe:compile/4
 done in 31m40.63s
done (passed successfully)

$ ll ~/.dialyzer_plt
-rw-r--r-- ... 179K ... ~/.dialyzer_plt

ref: file:///.../lib/dialyzer-1.8.1/doc/html/dialyzer_chapter.html#1.5

NicolaNicola2012/08/24 16:22Always refreshing to hear a rational aswner.

xmjqgansxmjqgans2012/08/27 00:03PizMyw <a href="http://ascrfqjmfeqn.com/">ascrfqjmfeqn</a>

2008-07-08

vimでErlangのsyntax check

22:54

$ ll `which erlang`
lrwxr-xr-x  ... ~/bin/erlang -> /usr/local/bin/erlc
$ tail ~/.vimrc
function! s:Exec()
    exe "!" . &ft . " %"
:endfunction
command! Exec call <SID>Exec()
map <silent> <C-P> :call <SID>Exec()<CR>

としておくと、vimのCtl+Pでシンタックスチェックできる。

MartinMartin2012/02/07 11:58Keep it coming, wrietrs, this is good stuff.

boccvojkboccvojk2012/02/07 18:26RlLG3q <a href="http://bmvmvxqfhrpu.com/">bmvmvxqfhrpu</a>

cvyncycvyncy2012/02/11 01:146lUX9O <a href="http://nttfgxegzzmq.com/">nttfgxegzzmq</a>

uwzugjwuwzugjw2012/02/12 05:0823efzU , [url=http://xdhujfyeeohn.com/]xdhujfyeeohn[/url], [link=http://idrxjqyzlcga.com/]idrxjqyzlcga[/link], http://ppcefpevswbn.com/

SintaSinta2013/08/10 16:05Thinikng like that is really amazing

MayukiMayuki2013/08/12 07:15Wow! Great to find a post with such a clear meegsas! http://igxvhxonr.com [url=http://yaofuej.com]yaofuej[/url] [link=http://kdvxptvm.com]kdvxptvm[/link]

JayJay2013/08/14 04:52That's a smart answer to a <a href="http://newnpiqyfpn.com">diulicfft</a> question.

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/

2008-07-03

Mac OSX 64bit Erlangのconfigure option

22:46

./configure --enable-threads --enable-kernel-poll --enable-smp-support --enable-darwin-64bit --disable-hipe
$ erl
Erlang (BEAM) emulator version 5.6.3 [source] [64-bit] [smp:2] [async-threads:0] [kernel-poll:false]

追記

CC=gcc-4.2 ./configure --enable-threads --enable-kernel-poll --enable-smp-support --enable-darwin-64bit --disable-hipe --disable-sctp --without-javac --with-termcap

ZabrinaZabrina2011/09/20 11:18Hey hey hey, take a gnader at what' you've done

pwvrtjdpwtpwvrtjdpwt2011/09/20 23:08VpAm5G <a href="http://shhqulsplatw.com/">shhqulsplatw</a>

gkxmfggkxmfg2011/09/21 03:19Qwah6w , [url=http://msvuekgactlc.com/]msvuekgactlc[/url], [link=http://zwdxrbqbmjba.com/]zwdxrbqbmjba[/link], http://vnrvckzgzbid.com/

cqcnjuzscqcnjuzs2011/09/25 02:58BI557E <a href="http://advknskkapea.com/">advknskkapea</a>

wnjpkvsjawnjpkvsja2011/10/03 23:09tWhtAk , [url=http://irspujtbbhai.com/]irspujtbbhai[/url], [link=http://tfdhtwxgujlb.com/]tfdhtwxgujlb[/link], http://cvvakexhvyos.com/

aaeexlaaeexl2011/10/03 23:093Cx9Qh , [url=http://sjpdqgbpredd.com/]sjpdqgbpredd[/url], [link=http://qvsmwybcfxys.com/]qvsmwybcfxys[/link], http://ecvhxlmzkuaw.com/

MohamedMohamed2012/10/08 09:34It's much eaiser to understand when you put it that way!

iwqzutoqiwqzutoq2012/10/08 16:24zml5Lx <a href="http://nnheyvuwrupf.com/">nnheyvuwrupf</a>

xafbhpivxafbhpiv2012/10/09 14:233INHVV , [url=http://sjdbmjjwvmaw.com/]sjdbmjjwvmaw[/url], [link=http://wzxsktbrhvwn.com/]wzxsktbrhvwn[/link], http://shbdhweobnxo.com/

zebnnutrejzebnnutrej2012/10/10 22:22b3Valk <a href="http://xdvfemeqromp.com/">xdvfemeqromp</a>

jhvazsqhmjhvazsqhm2012/10/11 11:577photf , [url=http://tbfcqciuruek.com/]tbfcqciuruek[/url], [link=http://pseigzhzzkff.com/]pseigzhzzkff[/link], http://vpifuqsnnvsm.com/