[erlang-questions] kpoll still using select
Sverker Eriksson
sverker@REDACTED
Thu Jul 9 11:28:44 CEST 2009
Joel Reymont wrote:
> Mac OSX 10.5.7
> ulimit -n
> 10240
> Erlang R13B01 (erts-5.7.2) [source] [smp:2:2] [rq:2] [async-threads:0]
> [kernel-poll:true]
>
> =ERROR REPORT==== 6-Jul-2009::20:51:54 ===
> driver_select(0x00000041, 1024, ERL_DRV_WRITE ERL_DRV_USE, 1) by
> tcp_inet driver #Port<0.3137> failed: fd=1024 is larger than the
> largest allowed fd=1023
>
> =ERROR REPORT==== 6-Jul-2009::20:51:55 ===
> File operation error: system_limit. Target: s3erl/ebin/random.beam.
> Function: get_file. Process: code_server.
A late answer:
What makes you think select is still used? driver_select will use select,
poll or any kernel poll variant depending on configuration and if kernel
poll is turn on or not. In case of kernel poll, driver_select may in some
cases fall back to use select or poll for individual file descriptors if the
OS does not support kernel poll for that device.
/Sverker, Erlang/OTP, Ericsson
More information about the erlang-questions
mailing list