[asterisk-users] Cache sound files for faster processing

Luki lugosoft at gmail.com
Tue Apr 6 00:24:32 CDT 2010


> 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

Not 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



More information about the asterisk-users mailing list