from time to time there are reports that people run into issues after trying to load larger data sets into the memory (e.g. with routing tables).
I also thought about the system package files, if its ok I would also check them to increase it as well to 128 MB.
--
Henning Westerholt –
https://skalatan.de/blog/
Kamailio services –
https://gilawa.com
Kamailio Merchandising –
https://skalatan.de/merchandising
-----Original Message-----
From: Daniel-Constantin Mierla
miconda@gmail.com
Sent: Monday, November 25, 2019 11:00 AM
To: Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org; Henning Westerholt
hw@skalatan.de
Subject: Re: [sr-dev] git:master:063e6a02: core: increase SHM memory pool to 128 MB
Hello,
On 23.11.19 23:23, Henning Westerholt wrote:
> Module: kamailio
> Branch: master
> Commit: 063e6a025b8ca0163af2147f057d29447c6f9760
> URL:
>
https://github.com/kamailio/kamailio/commit/063e6a025b8ca0163af2147f05
> 7d29447c6f9760
>
> Author: Henning Westerholt
hw@skalatan.de
> Committer: Henning Westerholt
hw@skalatan.de
> Date: 2019-11-23T22:49:28+01:00
>
> core: increase SHM memory pool to 128 MB
>
> - increase SHM memory pool to 128 MB
> - even an embedded system like Raspberry Pi has 1 GB RAM nowadays
> - make it less likely that new users run into issues because of lack
> of memory
I am curious about the last remark, can you priovide more details on issues for new uses because lack of memory? I haven't noticed and such report on mailling lists or issue tracker later, whondering if it is some particular use case that can lead to this issue.
Because a start of kamailio with default config file is using less than 3MB of shared memory, being plenty of space to fill up to 64MB with registrations, transactions, etc... states taken a few minutes ago with git master branch:
"shmem:max_used_size = 2836288",
"shmem:real_used_size = 2836288",
"shmem:used_size = 2594376"
Then, my actual remark is that I think the new users tend to use the packages, which use init.d/systemd to start kamailio, and there are values for pkg and shm sizes in the unit files, so this change doesn't really make a difference, because kamailio is started with different -m and -M command line parameters.
Cheers,
Daniel
>
> [...]
>
--
Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com