Sunday, May 25, 2014

Make Ubuntu faster with tmpfs and swappiness

# If you have enough RAM you want to turn off swappiness and turn on tmpfs

 vi /etc/fstab

 # add the line

tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0


 vi /etc/sysctl.conf

 # add the line

 vm.swappiness = 0

No comments:

Post a Comment