Reduce Disk Writes With tmpfs in Linux

tmpfs is a filesystem that mounted into a Linux Operating System which uses storage space from the physical memory (RAM). The advantage of using tmpfs is to improve file reads and writes performance and reduce writes to HDD and SSD storage system.
  • By reducing HDD writes, HDD will have more opportunities to spin down and thus saving power consumption. 
  • By reducing SSD writes, the lifespan of the SSD can be prolong.
Example:
Open /etc/fstab file for editing.

sudo gedit /etc/fstab

Append these lines at the bottom of the file.

tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/tmp tmpfs defaults 0 0
tmpfs /var/log tmpfs defaults 0 0 
tmpfs /var/log/apt tmpfs defaults 0 0

Comments

Popular posts from this blog

How to recalibrate your Samsung Note 4 battery

How to import Tasker projects, profiles, tasks and scenes

How to turn your Windows 7 laptop or dekstop into a WiFi repeater or extender