[SR-Users] Memory Allocation in Kamailio

Klaus Darilion klaus.mailinglists at pernau.at
Sat Oct 8 16:35:10 CEST 2011


On 08.10.2011 14:53, Austin Einter wrote:
> Hi
> Just a quick question. How memory is allocated in Kamailio code.
> Few places I saw pkg_malloc function.
> Is it the only function used to allocate memory or there are similar
> functions present in kamailio.

Basically there are 2 concepts: private memory (per process) and shared 
memory (shm, for all processes).

For example tm uses shared memory to store the transcations in memory.

So I suspect there will be similar functions for shared memory allocation.

regards
Klaus



More information about the sr-users mailing list