Mailing the story:

Storing Files/Directories In Memory With tmpfs

  • HowtoForge; By Falko Timme (Posted by on CST)
  • Story Type: Tutorial; Groups: Linux
You probably know that reading from RAM is a lot of faster than reading files from the hard drive, and reduces your disk I/O. This article shows how you can store files and directories in memory instead of on the hard drive with the help of tmpfs (a file system for creating memory devices). This is ideal for file caches and other temporary data (such as PHP's session files if you are using session.save_handler = files) because the data is lost when you power down or reboot the system.
What is your name?

What is your E-Mail address?

What is the email address of the recipient?

Add a special note from yourself?