<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Maxim,<br>
<br>
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).<br>
<br>
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.<br>
<br>
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.<br>
<br>
Thanks for the report, be back with a fix in next days. <br>
<br>
BTW, do you have any feedback on the discussion we had on the 100
Trying (other thread) ?<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 29.01.2016 22:08, Maxim Sobolev
wrote:<br>
</div>
<blockquote
cite="mid:CAH7qZfuZDDb9fXCWCyvUwVCREDkqZoUE-1fbN9vCYhk5S+Fqog@mail.gmail.com"
type="cite">
<div dir="ltr">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.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jan 28, 2016 at 11:35 PM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <tt>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 ?<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div class="h5">
<div>On 29.01.2016 04:13, Maxim Sobolev wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I think this broke 2.1:
<div><br>
</div>
<div>
<div>Jan 29 00:43:48 [12422] WARNING:core:main:
no fork mode </div>
<div>Jan 29 00:43:48 [12422] NOTICE:core:main:
version: opensips 2.1.2 (x86_64/linux)</div>
<div>Jan 29 00:43:48 [12422]
WARNING:core:fm_malloc: Not enough free
memory, will attempt defragmentation</div>
<div>Jan 29 00:43:48 [12422]
CRITICAL:core:init_io_wait: could not alloc fd
array (1536000 bytes)</div>
<div>Jan 29 00:43:48 [12422]
ERROR:core:udp_rcv_loop: failed to init
reactor</div>
</div>
<div><br>
</div>
<div>Full log is here:</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="https://travis-ci.org/sippy/voiptests/jobs/105566025"
target="_blank">https://travis-ci.org/sippy/voiptests/jobs/105566025</a><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jan 28, 2016 at
3:55 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:bogdan@opensips.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex"> Branch:
refs/heads/2.1<br>
Home: <a moz-do-not-send="true"
href="https://github.com/OpenSIPS/opensips"
rel="noreferrer" target="_blank">https://github.com/OpenSIPS/opensips</a><br>
Commit:
bce5306bb28c3b80e85c610e6ee4eb55603bdeb1<br>
<a moz-do-not-send="true"
href="https://github.com/OpenSIPS/opensips/commit/bce5306bb28c3b80e85c610e6ee4eb55603bdeb1"
rel="noreferrer" target="_blank">https://github.com/OpenSIPS/opensips/commit/bce5306bb28c3b80e85c610e6ee4eb55603bdeb1</a><br>
Author: Bogdan-Andrei Iancu <<a
moz-do-not-send="true"
href="mailto:bogdan@opensips.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>><br>
Date: 2016-01-28 (Thu, 28 Jan 2016)<br>
<br>
Changed paths:<br>
M daemonize.c<br>
M daemonize.h<br>
M main.c<br>
M net/net_tcp.c<br>
M net/net_tcp_proc.c<br>
M net/net_tcp_proc.h<br>
M net/net_udp.c<br>
<br>
Log Message:<br>
-----------<br>
Fix the sizing of the Async Reactors.<br>
<br>
Adjust the size of the reactor accroding the
limit of opens files.<br>
Closing #765.<br>
<br>
(cherry picked from commit
2efdbf8c45a35c57754ac14e64a356b9bb74fd5f)<br>
<br>
<br>
<br>
_______________________________________________<br>
Devel mailing list<br>
<a moz-do-not-send="true"
href="mailto:Devel@lists.opensips.org"
target="_blank">Devel@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel"
rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>
<div dir="ltr">Maksym Sobolyev<br>
Sippy Software, Inc.<br>
Internet Telephony (VoIP) Experts<br>
Tel (Canada): <a moz-do-not-send="true"
href="tel:%2B1-778-783-0474"
value="+17787830474" target="_blank">+1-778-783-0474</a><br>
Tel (Toll-Free): <a moz-do-not-send="true"
href="tel:%2B1-855-747-7779"
value="+18557477779" target="_blank">+1-855-747-7779</a><br>
Fax: <a moz-do-not-send="true"
href="tel:%2B1-866-857-6942"
value="+18668576942" target="_blank">+1-866-857-6942</a><br>
Web: <a moz-do-not-send="true"
href="http://www.sippysoft.com"
target="_blank">http://www.sippysoft.com</a><br>
MSN: <a moz-do-not-send="true"
href="mailto:sales@sippysoft.com"
target="_blank">sales@sippysoft.com</a><br>
Skype: SippySoft<br>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">Maksym Sobolyev<br>
Sippy Software, Inc.<br>
Internet Telephony (VoIP) Experts<br>
Tel (Canada): +1-778-783-0474<br>
Tel (Toll-Free): +1-855-747-7779<br>
Fax: +1-866-857-6942<br>
Web: <a moz-do-not-send="true"
href="http://www.sippysoft.com" target="_blank">http://www.sippysoft.com</a><br>
MSN: <a moz-do-not-send="true"
href="mailto:sales@sippysoft.com" target="_blank">sales@sippysoft.com</a><br>
Skype: SippySoft<br>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>