[erlang-questions] erl using 99% CPU while idle

Frank Hunleth <>
Tue Mar 27 15:37:13 CEST 2012


I was wondering if anyone had seen erl, specifically the
erts-5.9/bin/beam process, run at 99% CPU while at the shell prompt.
All that I do is run erl without any command line arguments and let it
sit. This is a cross-compiled Erlang R15B running on an ARM processor,
so it could be the case that I messed up an option somewhere along the
line. FWIW, the processing must be trivial since the system feels
completely responsive and Erlang applications appear to run fine. I
ran strace to see what was going on and the following lines repeat:

poll([{fd=3, events=POLLIN|POLLRDNORM}, {fd=0,
events=POLLIN|POLLRDNORM}], 2, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {799, 545800597}) = 0
clock_gettime(CLOCK_MONOTONIC, {799, 546350139}) = 0

I haven't gotten far enough through the source to figure out why poll
would be repeatedly called with a 0 timeout. Does anyone have any
clues?

Thanks,
Frank



More information about the erlang-questions mailing list