]> git.ipfire.org Git - thirdparty/asterisk.git/commit
contrib: Add systemd service and timer files for malloc trim.
authorBen Ford <bford@sangoma.com>
Wed, 16 Apr 2025 18:45:03 +0000 (13:45 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 1 May 2025 12:41:16 +0000 (12:41 +0000)
commitaf788aab5c4af70f3b68b49f080dd93a0f5e17d1
tree89d25ed50e44b5cfe28175883c3dd0a41a1d3eae
parent43a92df3fdc7fe825cad3d4e301141f069451cf1
contrib: Add systemd service and timer files for malloc trim.

Adds two files to the contrib/systemd/ directory that can be installed
to periodically run "malloc trim" on Asterisk. These files do nothing
unless they are explicitly moved to the correct location on the system.
Users who are experiencing Asterisk memory issues can use this service
to potentially help combat the problem. These files can also be
configured to change the start time and interval. See systemd.timer(5)
and systemd.time(7) for more information.

UserNote: Service and timer files for systemd have been added to the
contrib/systemd/ directory. If you are experiencing memory issues,
install these files to have "malloc trim" periodically run on the
system.

(cherry picked from commit bff3fd0fa8b35057e25fd56cb0070d5e80c118c1)
contrib/systemd/asterisk-malloc-trim.service [new file with mode: 0644]
contrib/systemd/asterisk-malloc-trim.timer [new file with mode: 0644]