Computer Software > Linux
Is there a simple guide to optimise linux for ssd?
Bowdon:
I'm going to be testing Linux Mint soon on my old computer. I've been watching quite a few videos on how to install it.
When I install it on an ssd quite a few people on youtube keep mentioning about optimising it for ssd.
So my question is, does anyone have a clear and simple (very simple for me ;D ) guide to optimise linux mint for ssd?
roseway:
This is quite good: https://wiki.archlinux.org/index.php/Solid_State_Drives
roseway:
I found this useful guide to setting up trim on a recent Debian system, and it will very likely work on an Ubuntu-based system such as Mint. I've done this on my Debian Stretch system, and it all worked fine.
--- Quote ---Command to trim an SSD:
sudo fstrim --all (or sudo fstrim -a)
Returns 0 (success), 32 (all failed) or 64 (some failed)
Commands to enable automatic trim:
A systemd .timer that will automatically run `fstrim -a` every week can be enabled in Debian with these commands:
sudo apt install util-linux
sudo cp /usr/share/doc/util-linux/examples/fstrim.{service,timer} /etc/systemd/system
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer
Check the status of the .timer with:
sudo systemctl list-timers
Stop the .timer from running automatically with:
sudo systemctl disable fstrim.timer
Read `man systemctl` & `man systemd.timer` for more on this.
--- End quote ---
Chrysalis:
a modern version of linux should do the 4k alignment for you, the only thing left is to mount with the discard flag which is needed for trim. :)
roseway:
Some SSD drives have problems with continuous trim (the discard flag), and it's widely recommended to use periodic trim instead, as described in my reply number 2 above. This is discussed in the Arch Linux article I linked to earlier.
Navigation
[0] Message Index
[#] Next page
Go to full version