FreeSWITCH DB in RAMdrive
Click here to expand Table of Contents
Some Linux distros have quirks that cause SQLite to behave poorly when scaling up. In other cases, disk I/O becomes a bottleneck to FreeSWITCH performance. Putting the FreeSWITCH core.db file onto a RAM disk can increase performance.
- In /etc/fstab, add a mountpoint and save.
tmpfs /usr/local/freeswitch/ramdisk tmpfs defaults 0 0
- Make sure you also create the directory.
- Then, in freeswitch/conf/autoload_configs/switch.conf.xml uncomment core-db-name and set it to the path you created in fstab.
<param name="core-db-name" value="/usr/local/freeswitch/ramdisk/core.db" />
- Restart FreeSWITCH