Re:Hacker News broke our site – how Nginx and PageSpeed fixe...
by falcolas on Tuesday March 24, 2015 @11:44AM
(#9257300)
One quick note: Nginx does not serve any of its caches out of memory, it's served from disk. This is a difference without distinction when you have lots of memory, since Nginx will end up sendfile-ing the file from the disk cache, but it's worth noting.
[ Parent
| on HN ]
Re:Hacker News broke our site – how Nginx and PageSpeed fixe...
by rayv on Tuesday March 24, 2015 @11:50AM
(#9257360)
But if the nginx cache path is set to a tmpfs volume then it's stored in memory and being served from memory.
Re:Hacker News broke our site – how Nginx and PageSpeed fixe...
by falcolas on Wednesday March 25, 2015 @08:34AM
(#9262477)
On a machine with enough memory, this is an unnecessary optimization. In most use cases, Nginx will be serving a number of static assets from disk in addition to the cached files, and allowing for more memory to be used on the OS' disk cache will make the entire site more responsive.