# Nginx cache, worth it to put it on a ramdisk?

**URL:** <https://www.ruby-forum.com/t/nginx-cache-worth-it-to-put-it-on-a-ramdisk/228455>\
**Category:** NGINX\
**Created:** [April 23, 2013, 4:48am UTC](https://www.ruby-forum.com/t/nginx-cache-worth-it-to-put-it-on-a-ramdisk/228455 "2013-04-23T04:48:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jchengj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@jchengj](https://www.ruby-forum.com/u/jchengj)\
**Post date:** [April 23, 2013, 4:48am UTC](https://www.ruby-forum.com/t/nginx-cache-worth-it-to-put-it-on-a-ramdisk/228455/1 "2013-04-23T04:48:27Z")

</div>

Hello,

I have a reverse proxy that has a cache set up for static content  
working, as traffic increases iam wondering if its worth it to put the  
cache on a ramdisk or would the normal file caching/buffer in ram from  
the linux kernel be sufficient?

The size of the cache is 30mb.

Thanks  
Joseph

---

<div class="post-metadata">

**Author:** ![jchengj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@jchengj](https://www.ruby-forum.com/u/jchengj)\
**Post date:** [April 23, 2013, 7:58am UTC](https://www.ruby-forum.com/t/nginx-cache-worth-it-to-put-it-on-a-ramdisk/228455/2 "2013-04-23T07:58:52Z")

</div>

i made some benchmarks lately and it loks like it doesnt  
matter for smaller caches, since os-caching is smart enough.

if you really want to know just test yourself.

regards,

mex

Posted at Nginx Forum:

> **[Re: nginx cache, worth it to put it on a ramdisk?](https://forum.nginx.org/read.php?2,238562,238565#msg-238565)**
>
> Hello, I have a reverse proxy that has a cache set up for static content working, as traffic increases iam wondering if its worth it to put the cache on a ramdisk or would the normal file caching/buffer in ram from the linux kernel be sufficient? The...
