I increased the shared memory size to 1GB with <br><br>sysctl -w kernel.shmmax=1000000000 <br><br>The problem still persists. The error happens when &quot;/etc/init.d/kamailio restart&quot; is executed. Is there any other way how to increase it ?<br>
<br><div class="gmail_quote">On Mon, Oct 10, 2011 at 3:49 PM, marius zbihlei <span dir="ltr">&lt;<a href="mailto:marius.zbihlei@1and1.ro">marius.zbihlei@1and1.ro</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 10/10/2011 03:51 PM, Mino Haluz wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
is there any setting which could allow me to set maximum memory per module ? As I am testing the carrier route module, I&#39;ve added for testing purposes 100 000 rules sofar. When I start the kamailio, it gives me :<br>

<br>
Oct 10 14:46:46 kamrouter /usr/sbin/kamailio[2182]: ERROR: carrierroute [../../ut.h:702]: could not allocate shared memory from available pool<br>
Oct 10 14:46:46 kamrouter /usr/sbin/kamailio[2182]: ERROR: carrierroute [cr_rule.c:155]: could not allocate shared memory from available pool<br>
<br>
Thanks.<br>
<br>
</blockquote></div></div>
Hello<br>
<br>
Can you increase the shared memory size ? But 100k rules should take only about 40-50MB of shared memory... I advise for at least 1GB(gigabyte) of SHM.<br>
<br>
The error is happening only when the rules are loaded (or reloaded via cr_reload_routes) or during a message processing (I understand the former but just want to make sure)<br>
<br>
Cheers,<br>
Marius<br>
<br>
-- <br>
Zbihlei Marius<br>
<br>
Head of<br>
Linux Development Services Romania<br>
<br>
1&amp;1 Internet Development srl    Tel KA: 754-9512<br>
Str Mircea Eliade 18            Tel RO: <a href="tel:%2B40-31-223-9512" value="+40312239512" target="_blank">+40-31-223-9512</a><br>
Sect 1, Bucuresti               mailto: <a href="mailto:marius.zbihlei@1and1.ro" target="_blank">marius.zbihlei@1and1.ro</a><br>
71295, Romania<br>
<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote></div><br>