[OpenSIPS-Users] Users Digest, Vol 48, Issue 21 - Raspberry Pi / OpenSIPS
Duncan Bell
duncanfbell at yahoo.co.uk
Fri Jul 6 12:36:56 CEST 2012
Hi Razvan
Thanks for your quick and accurate reply. I have made the changes which seems to have dropped my errors down from several thousand to just a handful, which is fantastic!
It looks like the fix has worked nicely for the usrloc module but the dialog module does not appear to work in the same way...
I'm not quite sure what the memory warning means though as I have forced the module to have 215MB of fixed memory (66MB currently used as idle) and has a 512MB swap file.
Although these changes have fixed the error messages the process now does not restart properly... where as before it had several thousand errors, but still worked.
Jul 6 11:23:11 raspberryvoip opensips: INFO:core:init_tcp: using epoll_lt as the TCP io watch method (auto detected)
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: NOTICE:core:main: version: opensips 1.8.0-notls (armv6l/linux)
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:core:main: using 128 Mb shared memory
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:core:main: using 4 Mb private memory per process
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: NOTICE:signaling:mod_init: initializing module ...
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:sl:mod_init: Initializing StateLess engine
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:tm:mod_init: TM - initializing...
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: CRITICAL:tm:lock_set_init: semget (..., 251, 0700) failed: Invalid argument
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:tm:lock_initialize: semaphore arrays of size 250 allocated
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:rr:mod_init: rr - initializing
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:maxfwd:mod_init: initializing...
Jul 6 11:23:11 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:sipmsgops:mod_init: initializing...
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:usrloc:ul_init_locks: locks array size 128
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:registrar:mod_init: initializing...
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:acc:mod_init: initializing...
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:auth:mod_init: initializing...
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:auth_db:mod_init: initializing...
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:dialog:mod_init: Dialog module - initializing
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 7 to 4
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 4 to 8
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 8 to 16
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 16 to 32
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 32 to 64
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 64 to 128
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 128 to 256
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 256 to 512
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 512 to 1024
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 1024 to 2048
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 2048 to 4096
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 4096 to 8192
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 8192 to 16384
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 16384 to 32768
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 32768 to 65536
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 65536 to 131072
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 131072 to 262144
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 262144 to 524288
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 524288 to 1048576
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 1048576 to 2097152
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 2097152 to 4194304
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 4194304 to 8388608
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 8388608 to 16777216
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 16777216 to 33554432
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 33554432 to 67108864
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 67108864 to 134217728
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 134217728 to 268435456
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:dialog:mod_init: hash_size is not a power of 2 as it should be -> rounding from 268435456 to 536870912
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: WARNING:core:fm_malloc: Not enough free memory, will atempt defragmenation
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: ERROR:dialog:init_dlg_table: no more shm mem (1)
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: ERROR:dialog:mod_init: failed to create hash table
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: ERROR:core:init_mod: failed to initialize module dialog
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: ERROR:core:main: error while initializing modules
Jul 6 11:23:12 raspberryvoip /usr/local/opensips_proxy/sbin/opensips[17917]: INFO:core:cleanup: cleanup
Jul 6 11:23:12 raspberryvoip opensips: INFO:core:daemonize: pre-daemon process exiting with -1
>________________________________
> From: "users-request at lists.opensips.org" <users-request at lists.opensips.org>
>To: users at lists.opensips.org
>Sent: Friday, 6 July 2012, 11:00
>Subject: Users Digest, Vol 48, Issue 21
>
>Send Users mailing list submissions to
> users at lists.opensips.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>or, via email, send a message with subject or body 'help' to
> users-request at lists.opensips.org
>
>You can reach the person managing the list at
> users-owner at lists.opensips.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Users digest..."
>
>
>Today's Topics:
>
> 1. Re: Raspberry Pi / OpenSIPS (R?zvan Crainea)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Fri, 06 Jul 2012 12:09:56 +0300
>From: R?zvan Crainea <razvan at opensips.org>
>Subject: Re: [OpenSIPS-Users] Raspberry Pi / OpenSIPS
>To: users at lists.opensips.org
>Message-ID: <4FF6AB64.7020404 at opensips.org>
>Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
>Hi, Duncan!
>
>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:
>
>modparam("usrloc", "hash_size", 7)
>modparam("dialog", "hash_size", 7)
>
>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.
>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.
>
>Regards,
>
>Razvan Crainea
>OpenSIPS Core Developer
>http://www.opensips-solutions.com
>
>On 07/05/2012 08:10 PM, Duncan Bell wrote:
>> Hi
>>
>> 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.
>>
>> The error starts here...
>>
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]:
>> CRITICAL:tm:lock_set_init: semget (..., 251, 0700) failed: Invalid
>> argument
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]:
>> INFO:tm:lock_initialize: semaphore arrays of size 250 allocated
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]: INFO:rr:mod_init: rr -
>> initializing
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]: INFO:maxfwd:mod_init:
>> initializing...
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]:
>> INFO:sipmsgops:mod_init: initializing...
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]:
>> CRITICAL:usrloc:lock_set_init: semget (..., 512, 0700) failed: Invalid
>> argument
>>
>> and I get it counts all the way down from 512 > 250 with a line for
>> each error... until
>>
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]:
>> CRITICAL:usrloc:lock_set_init: semget (..., 251, 0700) failed: Invalid
>> argument
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]:
>> INFO:usrloc:ul_init_locks: locks array size 250
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]:
>> INFO:registrar:mod_init: initializing...
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]: INFO:acc:mod_init:
>> initializing...
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]: INFO:auth:mod_init:
>> initializing...
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]: INFO:auth_db:mod_init:
>> initializing...
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]: INFO:dialog:mod_init:
>> Dialog module - initializing
>> Jul 3 18:32:14 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]:
>> CRITICAL:dialog:lock_set_init: semget (..., 2048, 0700) failed:
>> Invalid argument
>>
>> counting all the way down with a error per line from 2048 > 251
>>
>> Jul 3 18:32:15 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]:
>> CRITICAL:dialog:lock_set_init: semget (..., 251, 0700) failed: Invalid
>> argument
>> 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
>> 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
>> Jul 3 18:32:15 raspberryvoip
>> /usr/local/opensips_proxy/sbin/opensips[1139]:
>> INFO:core:init_sock_keepalive: -- TCP keepalive enabled on socket
>> Jul 3 18:32:15 raspberryvoip opensips: INFO:core:daemonize:
>> pre-daemon process exiting with 0
>>
>> Any ideas of these several thousand CRITICAL errors... or is this just
>> down to the unit not being able to handle OpenSIPS?
>>
>> Thanks
>> Duncan
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: <http://lists.opensips.org/pipermail/users/attachments/20120706/309560c2/attachment.html>
>
>------------------------------
>
>_______________________________________________
>Users mailing list
>Users at lists.opensips.org
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>End of Users Digest, Vol 48, Issue 21
>*************************************
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120706/eff8cf95/attachment-0001.htm>
More information about the Users
mailing list