Skip to content

Instantly share code, notes, and snippets.

@cldotdev
Last active December 14, 2015 04:39
Show Gist options
  • Select an option

  • Save cldotdev/5029476 to your computer and use it in GitHub Desktop.

Select an option

Save cldotdev/5029476 to your computer and use it in GitHub Desktop.
Mounting the temperary directories to DRAM. This can reduce writes to SSD.
# Copy these snippets to /etc/fstab
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
tmpfs /home/XXX/.cache tmpfs defaults,noatime,mode=0775,uid=YYY,gid=ZZZ 0 0
# XXX = user name
# Get YYY and ZZZ (eg. uid=1000, gid=1000) by typing the command:
# $ id [user name]
# in your bash shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment