<div>Thanks guys for ideas!</div>
<div> </div>
<div>-- <br>Cathy<br><a href="http://www.nachofoto.com">www.nachofoto.com</a> <br><br> </div>
<div><span class="gmail_quote">On 7/2/07, <b class="gmail_sendername">Evan Miller</b> <<a href="mailto:emiller@imvu.com">emiller@imvu.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Evan Weaver wrote:<br>> I think Nginx can serve requests directly from memcached.<br><br>Yes, although you have to put the files in memcached some other way
<br>(i.e. Nginx is not a proxy cache like Squid). Config reference:<br><br><a href="http://wiki.codemongers.com/NginxMemcachedModule">http://wiki.codemongers.com/NginxMemcachedModule</a><br><br>It does need an external module to behave like other memcache clients
<br>w.r.t. serving from multiple memcached servers:<br><br><a href="http://wiki.codemongers.com/NginxHttpUpstreamRequestHashModule">http://wiki.codemongers.com/NginxHttpUpstreamRequestHashModule</a><br><br>Evan<br><br>>
<br>> Evan<br>><br>> On 7/2/07, Andrew Miehs <<a href="mailto:andrew@2sheds.de">andrew@2sheds.de</a>> wrote:<br>>> On 02/07/2007, at 6:48 PM, Steve Grimm wrote:<br>>><br>>> > On 7/1/07 5:59 PM, "Cathy Murphy" <
<a href="mailto:cathy@nachofoto.com">cathy@nachofoto.com</a>> wrote:<br>>> > > In Apache, is there a way to serve images from memory instead of<br>>> > disk?<br>>> ><br>>> > The easiest way is to make sure your server has enough memory for
<br>>> > all the images (which you'd obviously need anyway) then just let<br>>> > the OS's buffer cache keep all the files in memory. You can mount<br>>> > the image filesystem with the "noatime" option or equivalent (check
<br>>> > your OS's docs to see what it's called in your environment) to<br>>> > prevent it from writing out the last access time when a file is read.<br>>><br>>> We tried this with Linux
2.6.(15) (or something around that version).<br>>> The file system cache didn't seem very efficient with lots of small<br>>> files.<br>>> (We also set noatime)...<br>>><br>>> In the end Squid caching in memory with Lighttpd was the quickest
<br>>> solution we could find.<br>>> BTW: Squid caching to disk was slower than Lighttpd pulling the data<br>>> from disk.<br>>><br>>> > It doesn't guarantee you no disk accesses, of course, but it's MUCH
<br>>> > easier to set up than the alternatives and for most purposes should<br>>> > offer you about the same performance.<br>>><br>>> I would like to try lighttpd with mod_mem_cache in the near future to
<br>>> replace the squids...(nothing to do with memcached)<br>>><br>>> Cheers<br>>><br>>> Andrew<br>>><br>><br>><br><br></blockquote></div><br><br clear="all"><br>