FreeSWITCH DB In RAMdrive

From FreeSWITCH Wiki
Revision as of 21:42, 21 September 2012 by Nikko (Talk | contribs)

Jump to: navigation, search

Contents

Introduction

Moving the ephemeral databases to a RAM disk will greatly improve performance, and it is CRITICAL to move them to a RAM disk if you use SSDs. More info on running FreeSWITCH on SSDs is here.

Discussion

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 db files onto a RAM disk can increase performance.

NOTE: The voicemail db information is also stored on the RAM disk, so be sure to back that up if you plan on restarting your system.

Example

   mkdir /ram
   mount -t tmpfs tmpfs /ram
   cd /usr/local/freeswitch
   mv db db.old
   ln -s /ram db
   then restart FreeSWITCH

See Also