Iex and erl run very slowly unless you assign a name to node

Environment is archlinux running on a virtual machine.

Erlang / OTP 17 [erts-6.2] [source] [64-bit] [smp: 2: 2] [async-threads: 10] [hipe] [kernel-poll: false]

Interactive Elixir (1.0.2) - press Ctrl + C to exit (type h () ENTER for help)

If I run erlor iex, it will take about 8-9 seconds.

But if I run erl -name xxxor iex --name xxx, then there is no delay at all.

While erl -sname xxxor iex --sname xxxnot working, takes 8 seconds or more.

So the question is: is there a way to skip the delay?

+4
source share
2 answers

, erl (user@hostname.localdomain)1>

, /etc/hosts Archlinux.

, , 1> . .

+5

strace, , .

Erlang node . , Erlang node. , , , .

strace -c -f -r erl

Erlang node :

strace -c -f -r erl -name pigeon

, , "" - , . , :

strace -e open -f -r erl

, - .

+3

All Articles