[asterisk-users] Cache sound files for faster processing

huu giang huugiang104 at yahoo.com
Wed Apr 7 08:15:01 CDT 2010


Thanks Steve for your information.

As you said, I don't need care for caching sound files ?, Linux is responsible for the job ?, So at the first time, Asterisk will load sound files from hard disk, and after that, it will load from RAM. 

Thanks.



--- On Tue, 4/6/10, Steve Edwards <asterisk.org at sedwards.com> wrote:

From: Steve Edwards <asterisk.org at sedwards.com>
Subject: Re: [asterisk-users] Cache sound files for faster processing
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Date: Tuesday, April 6, 2010, 7:15 AM

>> 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

On Mon, 5 Apr 2010, Luki wrote:

> 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.

A bit off topic, but recently I was trying to improve the performance of a 
MythTV frontend (a Linux home theater application).

I tried tmpfs and /dev/ramx and neither yielded noticeable improvement. My 
informal conclusion is that Linux does a good enough job at managing 
memory that tweaking is probably not worth it.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100407/78e9a409/attachment.htm 


More information about the asterisk-users mailing list