LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2015, 01:31 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
What filesystem is best for SSD?


In terms of speed, which filesystem would be the best? I would imagine ext4 and XFS would be sufficient, but how about btrfs? Is there any filesystem somewhat designed to be better for SSDS?

Thanks guys!
 
Old 08-14-2015, 01:32 PM   #2
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, Centos
Posts: 368
Blog Entries: 5

Rep: Reputation: 264Reputation: 264Reputation: 264
ButterFS with ssd and discard mount options. F2FS might be good too, never tested it

To be honest i think ssd's are so fast it doesn't really matter, just avoid filesystems that don't support discard

Last edited by ugjka; 08-14-2015 at 01:37 PM.
 
Old 08-14-2015, 01:38 PM   #3
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ugjka View Post
ButterFS with ssd and discard mount options. F2FS might be good too, never tested it
I didnt know btrfs was butterfs and thought you were joking at first lol. Yeah I looked at some benchmarks of F2FS and it seems to be performing the fastest http://www.phoronix.com/scan.php?pag...x-40-ssd&num=3 only other thing I need to lookup is if its stable. I think I am leaning toward F2FS at the momemnt. Apprently F2FS is designed more for SD cards...so probably to replace ext4 on android devices. Hmm, maybe I will look at btrfs instead.
 
Old 08-14-2015, 01:47 PM   #4
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, Centos
Posts: 368
Blog Entries: 5

Rep: Reputation: 264Reputation: 264Reputation: 264
If you want stability then ext4 is a no brainer. ButterFS is still considered "experimental" by some because it is still in active development.
 
Old 08-14-2015, 01:56 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
First off, what's the interface to your SSD? Unless it's PCIe, you'll never notice a difference. Even with PCIe you'll probably never notice a difference. FWIW I get 1.5 GB/s writes and 1.3 GB/s reads on my PCIe x4 SSD in my laptop formatted as ext4.
 
Old 08-14-2015, 01:59 PM   #6
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
First off, what's the interface to your SSD? Unless it's PCIe, you'll never notice a difference. Even with PCIe you'll probably never notice a difference. FWIW I get 1.5 GB/s writes and 1.3 GB/s reads on my PCIe x4 SSD in my laptop formatted as ext4.
Standard SATA 6Gb/s?
 
Old 08-14-2015, 02:02 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Altiris View Post
Standard SATA 6Gb/s?
Then it shouldn't matter. The interface is slow enough to bottleneck any filesystem.
 
Old 08-14-2015, 02:09 PM   #8
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
Then it shouldn't matter. The interface is slow enough to bottleneck any filesystem.
I see, what else is there nowdays that is faster?
 
Old 08-14-2015, 02:14 PM   #9
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
Ext4 is fine, you have to turn off some features (like journaling) to reduce writes on the disk; f2fs was written for SSD so it's fine too. Take a look at https://wiki.archlinux.org/index.php/Solid_State_Drives
 
Old 08-14-2015, 02:25 PM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by gengisdave View Post
Ext4 is fine, you have to turn off some features (like journaling) to reduce writes on the disk; f2fs was written for SSD so it's fine too. Take a look at https://wiki.archlinux.org/index.php/Solid_State_Drives
Why use EXT4 if you're going to disable journaling, why not just use EXT3? I agree with things like noatime but, then, I set that on my spinning rust also as atime is of no use to me.
 
Old 08-14-2015, 02:26 PM   #11
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
First off, what's the interface to your SSD? Unless it's PCIe, you'll never notice a difference. Even with PCIe you'll probably never notice a difference. FWIW I get 1.5 GB/s writes and 1.3 GB/s reads on my PCIe x4 SSD in my laptop formatted as ext4.
Outside of speed, would F2FS be a better choice than ext4?

Quote:
Originally Posted by gengisdave View Post
Ext4 is fine, you have to turn off some features (like journaling) to reduce writes on the disk; f2fs was written for SSD so it's fine too. Take a look at https://wiki.archlinux.org/index.php/Solid_State_Drives
I've been looking into it but there isn't a lot of information about it, like whether it has journaling or whether I need to enable anything special, I guess I don't since it is designed for this stuff?

Last edited by Altiris; 08-14-2015 at 02:30 PM.
 
Old 08-14-2015, 02:50 PM   #12
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
Quote:
Originally Posted by 273 View Post
Why use EXT4 if you're going to disable journaling, why not just use EXT3? I agree with things like noatime but, then, I set that on my spinning rust also as atime is of no use to me.
I think you meant ext2; ext3 fs does have journaling too and, more important, is no more developed (in a near future will be dropped away). You don't need to disable journaling, but you must know that it means a lot of writes on the disk. While trim is a must-have, no journal is an option.

Quote:
Originally Posted by Altiris View Post
I've been looking into it but there isn't a lot of information about it, like whether it has journaling or whether I need to enable anything special, I guess I don't since it is designed for this stuff?
Never tried f2fs, I once followed that wiki for an ext4 partition; I think f2fs would be more ready-to-use.
 
Old 08-14-2015, 02:57 PM   #13
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by gengisdave View Post
I think you meant ext2; ext3 fs does have journaling too and, more important, is no more developed (in a near future will be dropped away). You don't need to disable journaling, but you must know that it means a lot of writes on the disk. While trim is a must-have, no journal is an option
I meant EXT3 and turn off journaling since EXT3 ought to be supported longer...
Sorry I was being cheeky and suggesting that part of the reason for using EXT4 in the first place is that the journaling helps recovery from unclean shutdown. OK, so it has things like extents but, surely, journaling is one of the things improved in EXT3 over EXT3?
 
Old 08-14-2015, 03:50 PM   #14
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Altiris View Post
I see, what else is there nowdays that is faster?
PCIe or NVMe

As I said above, my ext4 PCIe SSD in my laptop gets 1.5 GB/s writes (GB, not Gb). SATA-III tops out around 550 MB/s regardless of the drive or the filesystem used.
 
Old 08-14-2015, 03:58 PM   #15
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by gengisdave View Post
Ext4 is fine, you have to turn off some features (like journaling) to reduce writes on the disk
That is bad advice...it's one of those crappy suggestions that became prominent in the chaos of FUD that surrounded SSDs and write limits when they were very first introduced.

The SSD write limit is a non-issue in all but the most extreme of corner cases, with or without journaling. Under normal circumstances, literally every other piece of hardware in the computer would die before you hit the SSD's write limit. Would you rather replace your drive in 30 years due to the write limit (vs say 32 years without journaling), or have to deal with a block of corrupt files every time you have an unclean shutdown?

Last edited by suicidaleggroll; 08-14-2015 at 04:00 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Ext4 filesystem diminishes life of SSD? deepclutch Linux - General 16 09-23-2014 03:43 AM
Filesystem for SSD disk: BTRFS vs NILFS2 vs EXT4 ruppertus Linux - General 10 04-19-2012 12:19 AM
Best filesystem for SSD? wulp Linux - Hardware 4 08-16-2011 08:48 AM
Filesystem for SSD drive Changes Linux - Software 5 09-02-2009 10:18 AM
Filesystem for a netbook with a SSD suicideducky Linux - General 4 12-16-2008 03:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration