Reply to topic  [ 1 post ] 
Linux and SSDs 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Jun 18, 2009 5:10 pm
Posts: 5836
Reply with quote
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 /

_________________
Jim

Image


Mon Jul 20, 2015 9:36 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.