[erlang-questions] R11B-2 on Solaris 10 kpoll problem

Serge Aleynikov <>
Wed Dec 20 16:41:09 CET 2006


Thanks Rickard!  This workaround eliminated the issue.

Serge

Rickard Green wrote:
> It works fine on our Solaris 10 sparc machines (unfortunately we do not 
> have any Solaris 10/x86 machines yet) by default, but if I lower max 
> open files to 256 (or lower) I get the same problem. I googled a bit on 
> this and apparently Solaris 10 doesn't want the size of the result array 
> passed in the /dev/poll ioctl to be greater than OPEN_MAX. The size of 
> the result array in our case is 256. Hopefully I'll find the time to 
> look closer at this before we release r11b-3. Increasing max files to 
> something larger than 256 (ulimit -n) will hopefully work as a 
> workaround for you.
> 
> BR,
> Rickard Green, Erlang/OTP
> 
> Serge Aleynikov wrote:
>> Hi,
>>
>> I am experiencing a problem running R11B-2 on Solaris 10 with kpoll 
>> enabled:
>>
>> $ gtar -zxf otp_src_R11B-2.tar.gz
>> $ cd otp_src_R11B-2
>> $ ./configure --prefix=/opt/erlang/R11B-2
>> $ gmake
>> $ sudo gmake install
>> $ cd /opt/erlang/R11B-2/bin
>> $ ./erl
>> Erlang (BEAM) emulator version 5.5.2 [source] [async-threads:0] [hipe] 
>> [kernel-poll:false]
>>
>> Eshell V5.5.2  (abort with ^G)
>> 1> q().
>>
>> $ ./erl +K true
>> {error_logger,{{2006,12,19},{13,57,10}},"~s~n",["erts_poll_wait() 
>> failed: einval (22)\n"]}
>> {error_logger,{{2006,12,19},{13,57,10}},"~s~n",["erts_poll_wait() 
>> failed: einval (22)\n"]}
>> {error_logger,{{2006,12,19},{13,57,10}},"~s~n",["erts_poll_wait() 
>> failed: einval (22)\n"]}
>> {error_logger,{{2006,12,19},{13,57,10}},"~s~n",["erts_poll_wait() 
>> failed: einval (22)\n"]}
>> {error_logger,{{2006,12,19},{13,57,10}},"~s~n",["erts_poll_wait() 
>> failed: einval (22)\n"]}
>> {error_logger,{{2006,12,19},{13,57,10}},"~s~n",["erts_poll_wait() 
>> failed: einval (22)\n"]}
>> {error_logger,{{2006,12,19},{13,57,10}},"~s~n",["erts_poll_wait() 
>> failed: einval (22)\n"]}
>> {error_logger,{{2006,12,19},{13,57,10}},"~s~n",["erts_poll_wait() 
>> failed: einval (22)\n"]}
>> ^C
>>
>> $ uname -a
>> SunOS devstorm10 5.10 Generic_118844-28 i86pc i386 i86pc
>>
>> Any suggestions?
>>
>> Serge




More information about the erlang-questions mailing list