This are some essential points to consider if you want to use an SSD hard drive in a Linux system.
1. Get enough RAM
2. Avoid using SWAP
If you want to use the option of hibernating, then set the swapines to zero. But try to avoid hibernation.
3. Disable acces time logging
in your /etc/fstab file add the option "noatime" in every partition of your SSD drive. For example, change every “errors=remount-ro” to “noatime,errors=remount-ro”
4. Run fstrim every day
It will prevent your SSD from slowing down. You can use cron to run this program automatically in the background every day.
5. Monitor your SSD using S.M.A.R.T.
Check once in a while that the Media_Wearout_Indicator value of your SSD is not lower than 10 (it starts with a value of 100).
source: https://www.leaseweb.com/labs/2013/07/5-crucial-optimizations-for-ssd-usage-in-ubuntu-linux/
1. Get enough RAM
2. Avoid using SWAP
If you want to use the option of hibernating, then set the swapines to zero. But try to avoid hibernation.
echo -e "vm.swappiness=0" | sudo tee -a /etc/sysctl.conf
3. Disable acces time logging
in your /etc/fstab file add the option "noatime" in every partition of your SSD drive. For example, change every “errors=remount-ro” to “noatime,errors=remount-ro”
4. Run fstrim every day
It will prevent your SSD from slowing down. You can use cron to run this program automatically in the background every day.
echo -e "#\x21/bin/sh\\nfstrim -v /" | sudo tee /etc/cron.daily/trim
sudo chmod +x /etc/cron.daily/trim
5. Monitor your SSD using S.M.A.R.T.
Check once in a while that the Media_Wearout_Indicator value of your SSD is not lower than 10 (it starts with a value of 100).
sudo smartctl -data -A /dev/sda
source: https://www.leaseweb.com/labs/2013/07/5-crucial-optimizations-for-ssd-usage-in-ubuntu-linux/
No hay comentarios:
Publicar un comentario