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

City Code Table for Casio SGW300HD-1AV Watch

How to force only 4G or LTE network connection for Samsung Galaxy Note 4

Mounting NFS share directory from D-link DNS 320L on Ubuntu 12.04 LTS