• 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 354 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, 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

Get new posts by email:

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 (24.3K Followers)
  • Twitter (5.8k 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

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

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, January 28, 2023, https://thecustomizewindows.com/2015/05/mount-wp-content-directory-into-ram-memory-hp-cloud-nginx/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

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

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

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT