<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks Steve for your information.<br><br>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. <br><br>Thanks.<br><br><br><br>--- On <b>Tue, 4/6/10, Steve Edwards <i><asterisk.org@sedwards.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Steve Edwards <asterisk.org@sedwards.com><br>Subject: Re: [asterisk-users] Cache sound files for faster processing<br>To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com><br>Date: Tuesday, April 6, 2010, 7:15 AM<br><br><div class="plainMail">>> Are there any way of configuring of Asterisk so it'll cache sound files <br>>> in
memory, and when Asterisk receive a call, instead of loading sound <br>>> files from the disk<br><br>On Mon, 5 Apr 2010, Luki wrote:<br><br>> Not directly, but it's not really needed. A long as the machine has <br>> enough RAM, the files will be served from RAM by the operating system. <br>> Sure there is the overhead of opening/closing files and reading them, <br>> but on modern OS this overhead is negligible if the files are cached <br>> (asterisk may even use mmap, but I'm not sure).<br>><br>> You can also make a ram disk (say via tmpfs), copy the sounds there and <br>> symlink the sound directory to that location. However, I don't think you <br>> will gain much.<br><br>A bit off topic, but recently I was trying to improve the performance of a <br>MythTV frontend (a Linux home theater application).<br><br>I tried tmpfs and /dev/ramx and neither yielded noticeable improvement. My <br>informal conclusion is that Linux
does a good enough job at managing <br>memory that tweaking is probably not worth it.<br><br>-- <br>Thanks in advance,<br>-------------------------------------------------------------------------<br>Steve Edwards <a ymailto="mailto:sedwards@sedwards.com" href="/mc/compose?to=sedwards@sedwards.com">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>Newline Fax: +1-760-731-3000<br><br>-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a
href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></blockquote></td></tr></table><br>