LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-21-2014, 04:53 AM   #1
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
Post Does Ext4 filesystem diminishes life of SSD?


I am planning to install Ubuntu/Debian on a new SSD and was searching for info when stumbled upon this link:
Quote:
Originally Posted by askubuntu
I would not use ext4 on a solid state drive based on anecdotal evidence and my own experience that suggests ext4 can greatly diminish the lifetime of a SSD due to the number of reads and writes associated with the file system. One article I recently read suggested that unoptimized (accounting for page size, etc.) ext4 on an SSD can cut the disk life in half. After a week of trouble shooting, I've come to the conclusion that my own SSDs have only lasted eight months due to this issue. If you use an SSD, do lots of reading on how to optimize the file system based on things like flash page size which may be different than the typical cylinder size the file system is set up for.
Quote:
Originally Posted by askubuntu
The last time I tested it, and I haven't heard differently yet anywhere, ext4 eats solid-state media. (thumbdrives, solid-state drives, etc.) I don't recommend using it on such a device. Use ext3 instead. For most cases on SSD you won't be able to tell the difference anyway.
https://bbs.archlinux.org/viewtopic.php?id=187214
http://askubuntu.com/questions/75061...xt4-for-my-ssd
Related:
http://www.linuxquestions.org/questi...sd-4175417236/
 
Old 09-21-2014, 04:58 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If you have an SSD you should use JFS.
 
Old 09-21-2014, 05:04 AM   #3
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Post

Quote:
Originally Posted by ReaperX7 View Post
If you have an SSD you should use JFS.
What superiority JFS has over Btrfs. does the concerns over ext4 genuine?
Does JFS have journelling in case of crashes to backup data?
 
Old 09-21-2014, 05:09 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
JFS : Journaled File System for Linux ...

http://jfs.sourceforge.net/
"IBM's journaled file system technology, currently used in IBM enterprise servers"

http://en.wikipedia.org/wiki/JFS_%28file_system%29


-

Last edited by knudfl; 09-21-2014 at 05:10 AM.
 
Old 09-21-2014, 05:12 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Should ?. What about f2fs - at east it was designed specifically for FTL devices.
As for me, I happily use ext4.
 
Old 09-21-2014, 06:28 AM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,491

Rep: Reputation: Disabled
The old problem of too many writes to disk doesn't exist with modern SSD, however it is advisable to use 'noatime' in your /etc/fstab entry, and not put 'swap' onto an SSD, other than that, it doesn't matter which filesystem you choose to use.
 
Old 09-21-2014, 09:11 AM   #7
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Really it doesn't matter I've got ext 4 running on an OCZ Vertex+, it's been on ext4 for two years. Before that it was HFS+ swap has been on the dive in both instances ext4 is not killing drives
 
Old 09-21-2014, 10:33 AM   #8
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Does not look like it so far. YMMV from mine.

Code:
# parted -l
Model: ATA APPLE SSD SM128 (scsi)
Disk /dev/sda: 121GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  9438MB  9437MB  ext4
 2      9438MB  121GB   112GB   ext3
http://postmyimage.com/img2/299_Oh_No.png

I never liked Apple anyways. But this one fell off a truck. (just the drive, not the laptop).

Code:
~$ inxi -M
Machine:   System: Hewlett-Packard product: Presario CQ57 Notebook PC v: 068C110003204910000620100
           Mobo: Hewlett-Packard model: 3577 v: 24.48
           Bios: Hewlett-Packard v: F.42 date: 11/07/2011
 
Old 09-21-2014, 11:23 AM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by deepclutch View Post
What superiority JFS has over Btrfs. does the concerns over ext4 genuine?
Does JFS have journelling in case of crashes to backup data?
Btrfs is still in development and isn't considered stable for general usage.

JFS is still the most recommended file system for GNU/Linux.
 
Old 09-21-2014, 11:46 AM   #10
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Whatever filesystem you decide to use, make sure TRIM is enabled and I would also use noatime in fstab.

JFS has TRIM support in newer kernels, it is journaled, and it is faster than other filesystems on a SSD:
http://www.phoronix.com/scan.php?pag...38_large&num=1

I've been using it for a long time and never had any problems.
 
Old 09-21-2014, 01:59 PM   #11
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Good source of info

https://wiki.archlinux.org/index.php/Solid_State_Drives
 
Old 09-21-2014, 04:30 PM   #12
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
Quote:
Originally Posted by metaschima View Post
Whatever filesystem you decide to use, make sure TRIM is enabled and I would also use noatime in fstab.

JFS has TRIM support in newer kernels, it is journaled, and it is faster than other filesystems on a SSD:
http://www.phoronix.com/scan.php?pag...38_large&num=1

I've been using it for a long time and never had any problems.
Agreed, I use ext4 with noatime on a USB 3 memory stick mounted on a RaspberryPi. No problems after 1 years of continual use.
 
Old 09-21-2014, 07:50 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Many SSD's have basically all that you need to secure data without a journal. All SSD's will slow down way too soon. It's their dirty little secret that they don't tell us.
Disable journal would be my suggestion. Move swap off to mechanical or don't use swap.
 
Old 09-22-2014, 10:13 PM   #14
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Post

Quote:
Originally Posted by ReaperX7 View Post
Btrfs is still in development and isn't considered stable for general usage.

JFS is still the most recommended file system for GNU/Linux.
I haven't used JFS filesystem. it was ext2/3 and now ext4 which I have used all along.
I am planning to install Debian Linux into a new SSD. formatting with GPT partition table. with JFS, for any unforeseen reason, power failure occurs, can it be recovered as easily as ext4? with ext4, running a fsck.ext4 -fvy /dev/sdX solves the problem most of the time.
So, Although not enough reasons cited, JFS is unofficially preferred for SSDs in Gnu/Linux?
 
Old 09-22-2014, 11:34 PM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
JFS supports TRIM very well and is a Copy-On-Write file system.

JFS has great data recovery support compared to other file systems. As long as the file system journal writes are kept current regularly, you'll rarely experience data loss.

It's no ZFS, but it's better than BtrFS is currently.
 
1 members found this post helpful.
  


Reply

Tags
btrfs, ext4, ssd



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Does Swap partition shorten the life of SSD? multiplicis Linux - Newbie 11 09-03-2012 12:42 PM
Filesystem for SSD disk: BTRFS vs NILFS2 vs EXT4 ruppertus Linux - General 10 04-19-2012 12:19 AM
[SOLVED] SSD, ext4 or xfs? qrange Linux - Software 3 02-01-2012 12:20 PM
TRIM/discard not working any more for ext4 partition on SSD revinary Linux - Hardware 0 11-15-2011 09:19 AM
Best filesystem for SSD? wulp Linux - Hardware 4 08-16-2011 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:39 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