Hi Maxim,

It seems to be a kind of a conflict between the the number of fds and the available memory (a conflict in terms of the default values to make opensips start with the best available setup).

The fix on the reactor enables the maximum available number of fds, so the internal reactor will have he maximum capacity when comes to Async ops. And this seems to bounce back in terms of using too much memory.

I guess I have to go back to the drawing board and come up with the solution to auto-adjust the number of fds in reactor based on (1) the system limits and (b) available/configured pkg memory.

Thanks for the report, be back with a fix in next days.

BTW, do you have any feedback on the discussion we had on the 100 Trying (other thread) ?

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 29.01.2016 22:08, Maxim Sobolev wrote:
This is just the default Travis linux instance. I don't set any flags to bump that limit specifically. I think the default there is 4k or something along those lines.

On Thu, Jan 28, 2016 at 11:35 PM, Bogdan-Andrei Iancu <[email protected] <mailto:[email protected]>> wrote:

    Woow....what is the value of open_files_limit you use ? or if you
    do not explicitly set, what is the soft limit for open files for
    the user you are using to run opensips ?

    Regards,

    Bogdan-Andrei Iancu
    OpenSIPS Founder and Developer
    http://www.opensips-solutions.com

    On 29.01.2016 04:13, Maxim Sobolev wrote:
    I think this broke 2.1:

    Jan 29 00:43:48 [12422] WARNING:core:main: no fork mode
    Jan 29 00:43:48 [12422] NOTICE:core:main: version: opensips 2.1.2
    (x86_64/linux)
    Jan 29 00:43:48 [12422] WARNING:core:fm_malloc: Not enough free
    memory, will attempt defragmentation
    Jan 29 00:43:48 [12422] CRITICAL:core:init_io_wait: could not
    alloc fd array (1536000 bytes)
    Jan 29 00:43:48 [12422] ERROR:core:udp_rcv_loop: failed to init
    reactor

    Full log is here:

    https://travis-ci.org/sippy/voiptests/jobs/105566025

    On Thu, Jan 28, 2016 at 3:55 AM, Bogdan-Andrei Iancu
    <[email protected] <mailto:[email protected]>> wrote:

          Branch: refs/heads/2.1
          Home: https://github.com/OpenSIPS/opensips
          Commit: bce5306bb28c3b80e85c610e6ee4eb55603bdeb1
        
https://github.com/OpenSIPS/opensips/commit/bce5306bb28c3b80e85c610e6ee4eb55603bdeb1
          Author: Bogdan-Andrei Iancu <[email protected]
        <mailto:[email protected]>>
          Date:   2016-01-28 (Thu, 28 Jan 2016)

          Changed paths:
            M daemonize.c
            M daemonize.h
            M main.c
            M net/net_tcp.c
            M net/net_tcp_proc.c
            M net/net_tcp_proc.h
            M net/net_udp.c

          Log Message:
          -----------
          Fix the sizing of the Async Reactors.

        Adjust the size of the reactor accroding the limit of opens
        files.
        Closing #765.

        (cherry picked from commit
        2efdbf8c45a35c57754ac14e64a356b9bb74fd5f)



        _______________________________________________
        Devel mailing list
        [email protected] <mailto:[email protected]>
        http://lists.opensips.org/cgi-bin/mailman/listinfo/devel




-- Maksym Sobolyev
    Sippy Software, Inc.
    Internet Telephony (VoIP) Experts
    Tel (Canada): +1-778-783-0474 <tel:%2B1-778-783-0474>
    Tel (Toll-Free): +1-855-747-7779 <tel:%2B1-855-747-7779>
    Fax: +1-866-857-6942 <tel:%2B1-866-857-6942>
    Web: http://www.sippysoft.com
    MSN: [email protected] <mailto:[email protected]>
    Skype: SippySoft




--
Maksym Sobolyev
Sippy Software, Inc.
Internet Telephony (VoIP) Experts
Tel (Canada): +1-778-783-0474
Tel (Toll-Free): +1-855-747-7779
Fax: +1-866-857-6942
Web: http://www.sippysoft.com
MSN: [email protected] <mailto:[email protected]>
Skype: SippySoft

_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to