Dear List, Are there any way of configuring of Asterisk so it'll cache sound files in memory, and when Asterisk receive a call, instead of loading sound files from the disk, it will load from the memory and so Asterisk can process much more call at a time than with faster speed it is not caching. Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100405/c8d6412d/attachment.htm
> Are there any way of configuring of Asterisk so it'll cache sound files in memory, > and when Asterisk receive a call, instead of loading sound files from the diskNot directly, but it's not really needed. A long as the machine has enough RAM, the files will be served from RAM by the operating system. Sure there is the overhead of opening/closing files and reading them, but on modern OS this overhead is negligible if the files are cached (asterisk may even use mmap, but I'm not sure). You can also make a ram disk (say via tmpfs), copy the sounds there and symlink the sound directory to that location. However, I don't think you will gain much. Luki
David Backeberg
2010-Apr-06 15:49 UTC
[asterisk-users] Cache sound files for faster processing
On Tue, Apr 6, 2010 at 12:36 AM, huu giang <huugiang104 at yahoo.com> wrote:> > Dear List, > > Are there any way of configuring of Asterisk so it'll cache sound files in memory, and when Asterisk receive a call, instead of loading sound files from the disk, it will load from the memory and so Asterisk can process much more call at a time than with faster speed it is not caching. > > Thanks,Aside from the suggestions, you could try out an SSD drive, which is both expensive compared to a traditional hard drive and very fast.