Difference between revisions of "FreeSWITCH DB In RAMdrive"

From FreeSWITCH Wiki
Jump to: navigation, search
(Introduction)
(Discussion)
Line 5: Line 5:
 
=Discussion=
 
=Discussion=
  
Some Linux distros have quirks that cause SQLite to behave poorly when scaling up. (I'm talking to you, OpenSUSE!) In other cases, disk I/O just isn't up to snuff. Putting the FreeSWITCH db files into a RAM drive can increase performance.
+
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 in the RAM drive, so be sure to back that up if you plan on restarting your system.
+
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=
 
=Example=

Revision as of 20:41, 21 September 2012

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

bkw_: I suspect you need to put db on a ram drive
[3:14pm] bkw_: mkdir /ram
[3:14pm] bkw_: mount -t tmpfs tmpfs /ram
[3:14pm] bkw_: then cd /usr/local/freeswitch
[3:14pm] bkw_: mv db db.old
[3:14pm] bkw_: ln -s /ram db
[3:14pm] bkw_: then restart freeswitch

See Also