R10B3 crashes after >1014 tcp connections + Yaws
Sean Hinde
sean.hinde@REDACTED
Mon Jun 13 10:59:19 CEST 2005
Hi,
OS X should be able to support the BSD kqueue mechanism. I just had a
quick go at compiling with --enable-kernel-poll, but somewhere in the
process it loses track of the existence of kqueue - maybe a good
place to start.
Without at least one of the fancy poll mechanisms then you will be
restricted to 1024 FDs - but that is why there is support for fancy
poll mechanisms :)
The only problem remaining is that there is no support for epoll in
Linux 2.6, kqueue is broken for OS X at least, and sys.c is such a
mess of ifdefs by now that it really should be re-written - it is a
real pain to modify in its current state.
Sean
On 13 Jun 2005, at 09:25, joel reymont wrote:
> I took a quick look at the source code and there are quite a few
> places where FD_SETSIZE is hardcoded. So the number of open files
> fixed at 1024 on my Mac OSX 10.3.9. I could certainly edit the system
> header files and increase the limit to a more suitable number but...
> I cannot ask my customer to do this and rebuild Erlang. At least I
> can't always ask them to.
>
> Overall, 1024 file descriptors per Erlang node is WAY too low.
>
> Thanks, Joel
>
> On 6/11/05, Mickael Remond <mickael.remond@REDACTED> wrote:
>
>> joel reymont wrote:
>>
>>> I will do this over the weekend. I compiled myself the R10B5 version
>>> just for the purpose.
>>>
>>
>> Maybe the environment variable ERL_MAX_PORT might also help in your
>> case. This use to be valid in the past but I do not know if this is
>> still the case:
>>
>> export ERL_MAX_PORTS=32000
>>
>
> --
> http://wagerlabs.com/tech
>
More information about the erlang-questions
mailing list