<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>&lt;asterisk.org@sedwards.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Steve Edwards &lt;asterisk.org@sedwards.com&gt;<br>Subject: Re: [asterisk-users] Cache sound files for faster processing<br>To: "Asterisk Users Mailing List - Non-Commercial Discussion" &lt;asterisk-users@lists.digium.com&gt;<br>Date: Tuesday, April 6, 2010, 7:15 AM<br><br><div class="plainMail">&gt;&gt; Are there any way of configuring of Asterisk so it'll cache sound files <br>&gt;&gt; in
 memory, and when Asterisk receive a call, instead of loading sound <br>&gt;&gt; files from the disk<br><br>On Mon, 5 Apr 2010, Luki wrote:<br><br>&gt; Not directly, but it's not really needed. A long as the machine has <br>&gt; enough RAM, the files will be served from RAM by the operating system. <br>&gt; Sure there is the overhead of opening/closing files and reading them, <br>&gt; but on modern OS this overhead is negligible if the files are cached <br>&gt; (asterisk may even use mmap, but I'm not sure).<br>&gt;<br>&gt; You can also make a ram disk (say via tmpfs), copy the sounds there and <br>&gt; symlink the sound directory to that location. However, I don't think you <br>&gt; 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&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<a ymailto="mailto:sedwards@sedwards.com" href="/mc/compose?to=sedwards@sedwards.com">sedwards@sedwards.com</a>&nbsp; &nbsp; &nbsp; Voice: +1-760-468-3867 PST<br>Newline&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;<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>