2017年8月22日 星期二

Optimization on SSD

Refer to:
  1. https://www.leaseweb.com/labs/2013/07/5-crucial-optimizations-for-ssd-usage-in-ubuntu-linux/
  2. https://askubuntu.com/questions/325283/how-do-i-check-the-health-of-a-ssd

Optimization on SSD
1. Buy more than enough RAM
2. Use the default partition layout
3. Avoid using swap
echo -e "vm.swappiness=0" | sudo tee -a /etc/sysctl.conf
4. Disable access time logging
sudo nano /etc/fstab
   Now change “errors=remount-ro” to “noatime,errors=remount-ro”. Save the file and reboot.
5. Enable TRIM
echo -e "#\x21/bin/sh\\nfstrim -v /" | sudo tee /etc/cron.daily/trim
sudo chmod +x /etc/cron.daily/trim

monitor the expected life-time (This may not wok on VM)
1. install smartmontools
sudo apt-get install smartmontools
2.
sudo smartctl -data -A /dev/sda

沒有留言:

張貼留言