# Using tmpfs

**URL:** <https://www.ruby-forum.com/t/using-tmpfs/217088>\
**Category:** NGINX\
**Created:** [February 21, 2012, 12:35pm UTC](https://www.ruby-forum.com/t/using-tmpfs/217088 "2012-02-21T12:35:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 21, 2012, 12:35pm UTC](https://www.ruby-forum.com/t/using-tmpfs/217088/1 "2012-02-21T12:35:44Z")

</div>

Performance wise, just hosting static files using tmpfs rather than  
ext4… would do alot? (cpu load/throughput etc) Is there any benefit  
in using a ramdisk as your wwwroot dir?

---

<div class="post-metadata">

**Author:** ![stimpy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/779978/32.png) [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Post date:** [February 21, 2012, 1:32pm UTC](https://www.ruby-forum.com/t/using-tmpfs/217088/2 "2012-02-21T13:32:49Z")

</div>

It will reduce your disk I/O a lot.

But I wouldn’t place the whole wwwroot dir on tmpfs because everytime  
you  
reboot the contents of tmpfs is gone. Instead, if your web application  
allows for caching (like Drupal with the Boost module, WordPress with  
the W3  
TotalCache or WP Super Cache, Typo3 with the nc\_staticfilecache  
extension,  
etc.), I’d put the cache onto tmpfs.

----- Original Message -----  
From: “Ryan B.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Tuesday, February 21, 2012 12:35 PM  
Subject: using tmpfs
