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.conf4. Disable access time logging
sudo nano /etc/fstabNow 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/trimsudo chmod +x /etc/cron.daily/trim
monitor the expected life-time (This may not wok on VM)
1. install smartmontools
sudo apt-get install smartmontools2.
sudo smartctl -data -A /dev/sda
沒有留言:
張貼留言