Hacker News new | past | comments | ask | show | jobs | submit login

If you run something like:

erl -noshell +sbwt none -smp disable +A 0 -mode minimal -eval 'io:format("Hello world~n").' -s init stop

instead, which is much closer to what python/java et al runs, then at least I get around 2850 syscalls.

The constant ppoll:ing is because erts spins looking for new work from any fd. Specifically "/sys/devices/system/node/node0" is in order to check for cpu topology updates by the operating system, i.e. if for some reason a core/cpu is taken offline of something like that. This is limited in my example above by "+sbwt none"

IIRC the bind is an UDP socket to talk to the local nameserver. This is removed in my example with "-mode minimal".




this feels similar to the overhead of an escript




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: