SSD optimization [Arch Linux]
Posted: Sat Dec 05, 2015 6:25 pm
Hey there! I just wanted to share my SSD drive configuration on my new Arch Audio Box. I think it could be useful for someone, also because probably these tweaks can be extended to other distros pretty easily. Also, as you can see, I used information from a lot of different Arch Wiki pages. So I though it would be nice to have them all collected here. I will also give some bit of further explanation when I think that the Arch Wiki is not too clear for a newbie.
Partitions: Just a single root partition.
Filesystem: I wanted to try Btrfs but to avoid potential problems known with linux-rt in the past I went for an old fashioned ext4, which supports both kinds of TRIMs (the wiki does not mention anymore the linux-rt problem, so probably it is solved).
Mount option: noatime, added as always in /etc/fstab.
Swap: Having 8 Gb of ram, a swap partition is not of much use. To allow suspend-to-disk to work I just created a Swap file just bigger than the ram itself. After that, Swappiness has been set to 1.
TRIM: periodic via fstrim. If util-linux is installed:
Kernel IO schedulers: noop. Having a single device, I prefer to achieve it through a kernel parameter set at boot. To do it, edit /etc/default/grub by adding elevator=noop to the list at the line GRUB_CMDLINE_LINUX_DEFAULT=. For example:
All these tweaks are not in conflict with pro audio tweaks. Actually, most of them enhance audio performances and are suggested in multiple Pro Audio Documentation pages.
Partitions: Just a single root partition.
Filesystem: I wanted to try Btrfs but to avoid potential problems known with linux-rt in the past I went for an old fashioned ext4, which supports both kinds of TRIMs (the wiki does not mention anymore the linux-rt problem, so probably it is solved).
Mount option: noatime, added as always in /etc/fstab.
Swap: Having 8 Gb of ram, a swap partition is not of much use. To allow suspend-to-disk to work I just created a Swap file just bigger than the ram itself. After that, Swappiness has been set to 1.
TRIM: periodic via fstrim. If util-linux is installed:
Code: Select all
systemctl enable fstrim.timer
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="threadirqs quiet elevator=noop"