Nitin Gupta
2006-Aug-18 19:08 UTC
[asterisk-users] loading the prompt files in memory on Asterisk startup
Hi, Is there any option in asterisk to load all the prompt files into memory on startup, so that it doesn;t have to hit the disk to read prompts for any call. Or any plugin / suggestion to avoid hitting the disk for prompt files? Thanks in advance. Nitin
David Gagnon
2006-Aug-18 19:53 UTC
[asterisk-users] loading the prompt files in memory on Asteriskstartup
Hi, Take a look at ramfs (http://plume.bxlug.be/articles/7). All you need then is to create a link (ln -s) in /var/lib/asterisk/sound to then ramdrive you created using ramfs. David -----Message d'origine----- De?: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] De la part de Nitin Gupta Envoy??: 18 ao?t 2006 22:08 ??: Asterisk Users Mailing List - Non-Commercial Discussion Objet?: [asterisk-users] loading the prompt files in memory on Asteriskstartup Hi, Is there any option in asterisk to load all the prompt files into memory on startup, so that it doesn;t have to hit the disk to read prompts for any call. Or any plugin / suggestion to avoid hitting the disk for prompt files? Thanks in advance. Nitin _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Tzafrir Cohen
2006-Aug-20 17:31 UTC
[asterisk-users] loading the prompt files in memory on Asterisk startup
On Fri, Aug 18, 2006 at 07:08:13PM -0700, Nitin Gupta wrote:> Hi, > Is there any option in asterisk to load all the prompt files into > memory on startup, so that it doesn;t have to hit the disk to read > prompts for any call. > Or any plugin / suggestion to avoid hitting the disk for prompt files?If they're small enough and/or you have enough memory, you can try to keep them in the IO buffers: a cron job that will cat all the relevant files to /dev/null ocasionally. No idea if this actually works... -- Tzafrir Cohen sip:tzafrir@local.xorcom.com icq#16849755 iax:tzafrir@local.xorcom.com +972-50-7952406 jabber:tzafrir@jabber.org tzafrir.cohen@xorcom.com http://www.xorcom.com