[SR-Users] Carrierroute: Could not allocate shared memory

marius zbihlei marius.zbihlei at 1and1.ro
Mon Oct 10 15:49:27 CEST 2011


On 10/10/2011 03:51 PM, Mino Haluz wrote:
> Hi,
>
> is there any setting which could allow me to set maximum memory per 
> module ? As I am testing the carrier route module, I've added for 
> testing purposes 100 000 rules sofar. When I start the kamailio, it 
> gives me :
>
> Oct 10 14:46:46 kamrouter /usr/sbin/kamailio[2182]: ERROR: 
> carrierroute [../../ut.h:702]: could not allocate shared memory from 
> available pool
> Oct 10 14:46:46 kamrouter /usr/sbin/kamailio[2182]: ERROR: 
> carrierroute [cr_rule.c:155]: could not allocate shared memory from 
> available pool
>
> Thanks.
>
Hello

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.

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)

Cheers,
Marius

-- 
Zbihlei Marius

Head of
Linux Development Services Romania

1&1 Internet Development srl    Tel KA: 754-9512
Str Mircea Eliade 18            Tel RO: +40-31-223-9512
Sect 1, Bucuresti               mailto: marius.zbihlei at 1and1.ro
71295, Romania




More information about the sr-users mailing list