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

Tomasz Maciejewski ponton@REDACTED
Tue Mar 27 15:45:35 CEST 2012


W dniu 27 marca 2012 15:37 użytkownik Frank Hunleth
<fhunleth@REDACTED> napisał:
> 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

I don't know if it's even related to the problem, but have tried using
kernel polling (erl +K true)?

-- 
Tomasz Maciejewski



More information about the erlang-questions mailing list