Re: [SR-Users] LCR Routes and memory allocations

2011-03-15 Thread Juha Heinanen
Daniel-Constantin Mierla writes: If you reload the rules at runtime, you may need 2x shared memory size for lcr rules - Juha can confirm that the module is (re-)loading rules in a separate memory structure and then swaps with the active one, and frees the old one afterwards, since I am not

Re: [SR-Users] LCR Routes and memory allocations

2011-03-14 Thread Daniel-Constantin Mierla
Hello, popping in to add some clarifications/hints regarding some statements in this thread... Loading of LCR rules from database is done through private memory, but the records are loaded in chunks. So you should be fine with 4MB of memory. If it is not enough for startup/reload time, just

Re: [SR-Users] LCR Routes and memory allocations

2011-03-13 Thread Iñaki Baz Castillo
2011/3/13 Graham Wooden gra...@g-rock.net: I have now approximately 400,000 routes defined in my LCR table and I would like to make sure that I have enough memory allocated for it.  I read somewhere (a non official Kamailio site) about PKG_MEM_POOL_SIZE and SHM_MEM_SIZE needing to be altered

Re: [SR-Users] LCR Routes and memory allocations

2011-03-13 Thread Stagg Shelton
I set the shared memory to 512M via the command line at program start and do not have any problems with my 500k routes. Thank You Stagg Shelton For support please email supp...@vocalcloud.com Sent from my mobile phone On Mar 12, 2011, at 7:50 PM, Graham Wooden gra...@g-rock.net wrote: Hi

Re: [SR-Users] LCR Routes and memory allocations

2011-03-13 Thread Graham Wooden
Thanks Stagg and Iñaki. I already had the -m 512 in my init file, so it appears I am ok there. I went ahead and recompiled with PKG_MEM_POOL_SIZE to 16MB and I'll see how it goes. Thanks again, -graham On 3/13/11 7:39 AM, Iñaki Baz Castillo i...@aliax.net wrote: 2011/3/13 Graham Wooden

Re: [SR-Users] LCR Routes and memory allocations

2011-03-13 Thread Juha Heinanen
Graham Wooden writes: I already had the -m 512 in my init file, so it appears I am ok there. I went ahead and recompiled with PKG_MEM_POOL_SIZE to 16MB and I'll see how it goes. graham, lcr module (at least the later versions) does not use any pkg memory. it keeps all gws and rules in shm

[SR-Users] LCR Routes and memory allocations

2011-03-12 Thread Graham Wooden
Hi there, I have now approximately 400,000 routes defined in my LCR table and I would like to make sure that I have enough memory allocated for it. I read somewhere (a non official Kamailio site) about PKG_MEM_POOL_SIZE and SHM_MEM_SIZE needing to be altered to handle the increased routes.