Hi Dounin,<br><br>Thx for your link. Linux has a nearly the same mechanism.<br>However, if the files needed to cache are not physical files, such as avatars stored as BLOB in MySQL of vBulletin, I think memcached is a good solution.<br>
<br>--<br>Nguyen Viet Cuong<br><br><br><div class="gmail_quote">On Mon, Dec 28, 2009 at 9:49 AM, Maxim Dounin <span dir="ltr">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br>
<div><div></div><div class="h5"><br>
On Mon, Dec 28, 2009 at 08:57:29AM +0900, Nguyen Viet Cuong wrote:<br>
<br>
&gt; In our system, we have used memcached in the same way as Danny Trinh do.<br>
&gt; Recently, I have tried to use a portion of memory for storing cache files by<br>
&gt; mount /dev/shm to some point on filesystem. However, you said that:<br>
&gt;<br>
&gt; Also, you probably want to know that on modern operating<br>
&gt; &gt; systems it is usually bad idea to place files into memory<br>
&gt; &gt; explicitly.  Virtual memory subsystem will do it automatically as<br>
&gt; &gt; long as you have spare memory on your server, and will likely do<br>
&gt; &gt; it better than may be done by hand.<br>
&gt; &gt;<br>
&gt;<br>
&gt; I do not know anything about this automatic mechanism.<br>
&gt; Could you explain more about this? Or could you give me some links?<br>
<br>
</div></div><a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#TOP-FREEMEM" target="_blank">http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#TOP-FREEMEM</a><br>
<br>
In FreeBSD it&#39;s about 15 years now all available memory are used<br>
as disk cache (as disk cache actually integrated with VM system).<br>
And I belive Linux does the same for a while, too.  Exact<br>
algorithms used vary.<br>
<div><div></div><div class="h5"><br>
Maxim Dounin<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br>