[sr-dev] Large memory allocation on module startup
Henning Westerholt
hw at gilawa.com
Fri Aug 12 12:53:26 CEST 2022
Hello,
can you add a bit more details, e.g. before it took x seconds and now it takes y seconds?
Some modules (e.g. carrierroute) can allocate quite large shared memory segments during startup, and it should work ok.
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com
-----Original Message-----
From: sr-dev <sr-dev-bounces at lists.kamailio.org> On Behalf Of kthulasizwe at gmail.com
Sent: Friday, August 12, 2022 11:04 AM
To: sr-dev at lists.kamailio.org
Subject: [sr-dev] Large memory allocation on module startup
Hi Guys,
I have recently modified a custom module, where I now shm_mallocxz 2MB, as part of module start up and this memory is not being used as yet.
Previously, the would be smaller chunks(100 bytes at most) shm_malloced during message processing.
I have observed significant runtime performance degradation from just this single change. I would appreciate any suggestions/thoughts you might have.
Below are some the relevant details.
OS:Alpine Linux
RAM: 16GB
Configured Shared memory: 4GB
shm_force_alloc=1
Typical shared memory usage: 1.5GB
System swapping is disabled, also observed during load testing that no mem is getting swapped.
_______________________________________________
Kamailio (SER) - Development Mailing List sr-dev at lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
More information about the sr-dev
mailing list