using tmpfs

Falko Timme ft at
Tue Feb 21 12:32:23 UTC 2012

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 Brown" <mp3geek at>
To: <nginx at>
Sent: Tuesday, February 21, 2012 12:35 PM
Subject: using tmpfs

> 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?
> _______________________________________________
> nginx mailing list
> nginx at

More information about the nginx mailing list