x404.co.uk
http://x404.co.uk/forum/

Linux and SSDs
http://x404.co.uk/forum/viewtopic.php?f=4&t=24084
Page 1 of 1

Author:  rustybucket [ Mon Jul 20, 2015 9:36 pm ]
Post subject:  Linux and SSDs

This thread is a quick summary of things you need to know about using solid-state drives with Linux.

Firstly, it matters what filesystem you choose. I strongly recommend using ext4 because:

  • ext4 is kind to SSDs and natively supports online trim
  • Btrfs can really hurt SSDs
  • GFS2 and XFS are irrelevant to you unless you're running a cluster
  • ext3 only supports offline trim

Secondly, there is a lot of guff out in electron-land about adding the 'discard' parameter to your fstab. Do not do this. Adding this parameter will force the OS into attempting to trim the disk every time a file is deleted - which will really hurt your SSD's life expectancy. Instead, just run the following command once a week (or month if you're a light user):

Code:
sudo fstrim -v /

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/