Re: [asterisk-users] Cache sound files for faster processing
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 wrote: From: Steve Edwards Subject: Re: [asterisk-users] Cache sound files for faster processing To: "Asterisk Users Mailing List - Non-Commercial Discussion" 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 sedwa...@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 -- _ -- 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
Re: [asterisk-users] Cache sound files for faster processing
On Tue, Apr 6, 2010 at 12:36 AM, huu giang 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. -- _ -- 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
Re: [asterisk-users] Cache sound files for faster processing
>> 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 sedwa...@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
Re: [asterisk-users] Cache sound files for faster processing
> 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 -- _ -- 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
[asterisk-users] Cache sound files for faster processing
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, -- _ -- 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