How shared memory pool concept has been implemented?

Why shm_mem_size * 32 is being allocated?

Is the entire segment separated by 32 byte byt 32 byte? 

 

Please explain me the shared memory pool  in Kamailio.

 

From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] 
Sent: Wednesday, July 13, 2016 12:13 PM
To: Prakash; 'Kamailio (SER) - Users Mailing List'
Subject: Re: [SR-Users] shm_malloc

 

Hello,

Can you be more explicit about what do you expect?

Daniel

 

On 13/07/16 07:27, Prakash wrote:

Hello Daniel,

 

Many thanks for the response. 

Could you please provide me the behind scenes of shm_malloc()?.

It will be very helpful for me to segregate without any flaws.

 

 

Thanks,

Prakash

 

From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of 
Daniel-Constantin Mierla
Sent: Tuesday, July 12, 2016 6:34 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] shm_malloc

 

Hello,

I don't expect to be very hard to extract the shm management code from 
kamailio. It is inside the subfolder mem/ .

Then, there should be some dependecies that you need to get out from the core, 
coming in my mind is locking (mutexes). Maybe atomic operations (not 
remembering by heart if some counters are kept for memory management) and few 
other bits.

It should work without crash, you just need to get it initialized as kamailio 
does it in it's main function.

Cheers,
Daniel

On 12/07/16 13:57, Prakash wrote:

Hello,

 

Is it possible to take out shared memory code from kamailio?

if so ,Will it work without any crash?







_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users






-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda>  - 
http://www.linkedin.com/in/miconda





-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to