• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Mount wp-content Directory into RAM Memory (HP Cloud, Nginx)

By Abhishek Ghosh May 3, 2015 11:56 am Updated on May 3, 2015

Mount wp-content Directory into RAM Memory (HP Cloud, Nginx)

Advertisement

Virtual Instances on Bad Quality Hardware Can Die Instead of Performance Boost. We Can Mount wp-content Directory into RAM Memory For Testing. This is quite advanced guide and despite it appears easy, you should take precautions (server snapshot) and know something about recovery. We will mount wp-content directory slow PHP dragged WordPress into RAM Memory sounds so inviting that it is difficult not to do the thing.

 

Mount wp-content Directory into RAM Memory : Understand Mounting

 

We described how to mount swap space on virtual instance. The basic commands are quite closer and our method has basic advantages : Everything will comeback to the previous state if you just reboot.

 

Mount wp-content Directory into RAM Memory (HP Cloud, Nginx)

 

This is popularly known as creating a RAM directory to serve the static cache files and HTML files. Take that we have nginx installed and public FTP root is at /usr/share/nginx/html. First shut down nginx :

Advertisement

---

Vim
1
service nginx stop

If you proxy_cache_path is set to /usr/share/nginx/cache/fcgi, then run these two commands :

Vim
1
2
mount -t tmpfs -o size=1G tmpfs /usr/share/nginx/html/wp-content/cache
mount -t tmpfs -o size=1G tmpfs /usr/share/nginx/cache/fcgi

Start nginx now :

Vim
1
service nginx start

Mount wp-content Directory into RAM Memory

Just like adding swap tutorial, if you want the wp-content to remain even after a reboot (you are not doing this step before testing the above), then edit /etc/fstab and add this line for the above case :

Vim
1
tmpfs /usr/share/nginx/html/wp-content/cache tmpfs defaults,size=1G 0 0

The above is permanent method. You can run df -ah | grep tmpfs or df -k command to check the things. We have taken the screenshot on test server – the screenshot is not of live instance. You should be careful about what you are doing. We are using tmpfs. Both the rams and tmpfs does the same thing with some differences. tmpfs uses swap but ramfs does not use swap. ramfs on physical server is really fast.

We do not recommend to use these on cloud server instances. From our testings, these give inconsistent results. All is basically getting allocated from the disk, so practically the gain is very low on virtual instances.

This Article Has Been Shared 170 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Mount wp-content Directory into RAM Memory (HP Cloud, Nginx)

  • Cloud Computing and Designing Own Truly Scalable System

    Cloud Computing becomes fully enjoyable if it is arranged to make a scalable system for the application or CMS or any web software including WordPress.

  • Cloud Security Solutions for Tablets and Smartphones

    Cloud Security Solutions for Tablets and Smartphones covers the issues with lost or stolen mobile devices, accidental data deletion, App security and Malwares.

  • Cloud Server, PaaS, VPS, Dedicated Server : Choose the Right

    Cloud Server, PaaS, VPS, Dedicated Server, Colocation Server – lot of options for hosting from Free to few thousand dollars per month. Which one to pick ?

  • Service Oriented Architecture (SOA) : Detail Article

    Service Oriented Architecture or SOA is an architectural pattern of IT which plays a special role on business processes, where levels of abstraction are basis.

  • Security Risks of Virtualization in Data Center

    Security risks of Virtualization in the Data Center are with applications and operating systems to Weakness of security personnel. Its multi factorial.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (21K Followers)
  • Twitter (5.3k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Best Powerpoint Templates for Communicating IoT Concepts April 17, 2021
  • How to Build a DIY Water Level Indicator? April 16, 2021
  • How Startups Can Convince the Investors April 14, 2021
  • What to Know About the Cloud Storage Services for Smartphones April 13, 2021
  • WonderFox HD Video Converter Factory Pro Review April 10, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Mount wp-content Directory into RAM Memory (HP Cloud, Nginx)," in The Customize Windows, May 3, 2015, April 18, 2021, https://thecustomizewindows.com/2015/05/mount-wp-content-directory-into-ram-memory-hp-cloud-nginx/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy