<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi, Duncan!<br>
<br>
It seems like the Rasperry Pi cannot allocate more than 250
semaphores at once, but the usrloc module and dialog try to
allocate more than that. In order to get fewer errors, you
should configure OpenSIPS to allocate for each module less than
250 semaphores. For the dialog and usrloc module you can use the
hash_size parameter to do that:<br>
<br>
modparam("usrloc", "hash_size", 7)<br>
modparam("dialog", "hash_size", 7)<br>
<br>
Setting the hash size to 7, it will allocate 2^7 = 128
semaphores, which is less than 250 the upper limit, therefore no
critical errors will be displayed.<br>
The first error (CRITICAL:tm:lock_set_init: semget ...) cannot
be avoided from the script, you will have to change some defines
in OpenSIPS source code.<br>
<br>
Regards,</tt>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<br>
<pre class="moz-signature" cols="72">Razvan Crainea
OpenSIPS Core Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
</pre>
On 07/05/2012 08:10 PM, Duncan Bell wrote:<br>
</div>
<blockquote
cite="mid:1341508238.94789.YahooMailNeo@web171302.mail.ir2.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:verdana, helvetica, sans-serif;font-size:10pt">
<div><span>Hi</span></div>
<div><br>
<span></span></div>
<div><span>I installed OpenSIPS on my Raspberry Pi as a project
in exactly the same way as I would on any other machine
following the webinar guide from the OpenSIPS site. It
works and I can register extensions etc, but there are a
huge amount of errors in the logs I normally do not get.</span></div>
<div><br>
</div>
The error starts here...<br>
<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
CRITICAL:tm:lock_set_init: semget (..., 251, 0700) failed:
Invalid argument<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:tm:lock_initialize: semaphore arrays of size 250 allocated<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]: INFO:rr:mod_init:
rr - initializing<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:maxfwd:mod_init: initializing...<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:sipmsgops:mod_init: initializing...<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
CRITICAL:usrloc:lock_set_init: semget (..., 512, 0700) failed:
Invalid argument<br>
<br>
and I get it counts all the way down from 512 > 250 with a
line for each error... until<br>
<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
CRITICAL:usrloc:lock_set_init: semget (..., 251, 0700) failed:
Invalid argument<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:usrloc:ul_init_locks: locks array size 250<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:registrar:mod_init: initializing...<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:acc:mod_init: initializing...<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:auth:mod_init: initializing...<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:auth_db:mod_init: initializing...<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:dialog:mod_init: Dialog module - initializing<br>
Jul 3 18:32:14 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
CRITICAL:dialog:lock_set_init: semget (..., 2048, 0700) failed:
Invalid argument<br>
<br>
counting all the way down with a error per line from 2048 >
251<br>
<br>
Jul 3 18:32:15 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
CRITICAL:dialog:lock_set_init: semget (..., 251, 0700) failed:
Invalid argument<br>
Jul 3 18:32:15 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:core:probe_max_sock_buff: using rcv buffer of 216 kb<br>
Jul 3 18:32:15 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:core:probe_max_sock_buff: using snd buffer of 216 kb<br>
Jul 3 18:32:15 raspberryvoip
/usr/local/opensips_proxy/sbin/opensips[1139]:
INFO:core:init_sock_keepalive: -- TCP keepalive enabled on
socket<br>
Jul 3 18:32:15 raspberryvoip opensips: INFO:core:daemonize:
pre-daemon process exiting with 0<br>
<br>
Any ideas of these several thousand CRITICAL errors... or is
this just down to the unit not being able to handle OpenSIPS?<br>
<br>
Thanks<br>
Duncan<br>
<div>
<blockquote style="border-left: 2px solid rgb(16, 16, 255);
margin-left: 5px; margin-top: 5px; padding-left: 5px;">
<div style="font-family: verdana, helvetica, sans-serif;
font-size: 10pt;"> </div>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>