LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-12-2010, 01:22 PM   #1
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 500

Rep: Reputation: 37
Sackware64 -current & EXT4 & SSD


Hi, I use Slackware64 -current. I will buy a SSD drive, normaly the filesystem in my laptop is EXT4.
Is there anything that I need to know? How to improve life of the SSD?
Is journaling a good option? How to disable?
 
Old 03-12-2010, 08:52 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
You don't need to do anything special to support an SSD, and all modern SSDs have wear leveling technology which greatly extends their lifetime. You don't really need to worry about repetitive writes like you did with past generations of the technology. I read some articles recently that put the lifespan of a modern SSD, even with intense writing, somewhere north of 20 years.
 
Old 03-13-2010, 03:13 AM   #3
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,605

Rep: Reputation: 142Reputation: 142
I read an article, too, on this topic. They compared Linux file systems on SSDs and concluded with a clear recommendation for ext4 with journaling for modern SSD drives. If I recall it correctly, Reiser 4 was also regarded technically excellent and very good for SSDs, and in some respects even better than ext4, but the long-term support in Linux seems less clear.

Expected lifetime of new devices is about 30 years, as MS3FGX said, even in use cases with intense writing.

gargamel
 
Old 04-05-2010, 05:22 AM   #4
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 500

Original Poster
Rep: Reputation: 37
And about Trim Support?
In SLackware -current is available? I need to configure something?
 
Old 04-05-2010, 11:24 AM   #5
hemp4fuel
Member
 
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 192

Rep: Reputation: 45
You can add 'discard' to the options of the mount point in /etc/fstab. In Linux trim = discard. Here is my fstab entry for an ssd:

Code:
/dev/sda2        /home            ext4        defaults,noatime,discard,errors=remount-ro         0   2
 
1 members found this post helpful.
Old 04-05-2010, 01:05 PM   #6
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 500

Original Poster
Rep: Reputation: 37
Thanks for the reply.
I will use discard option.
And how to disable journelling?
 
Old 04-05-2010, 03:01 PM   #7
hemp4fuel
Member
 
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 192

Rep: Reputation: 45
From what I have read there is no real advantage to disabling journaling in ext4 with a ssd.
 
Old 04-05-2010, 03:20 PM   #8
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 500

Original Poster
Rep: Reputation: 37
Journallig don't write in the disk in period cycles?
Without journalling the system is faster, I think.
 
Old 04-05-2010, 05:35 PM   #9
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 100Reputation: 100
If you are going to use an ssd, I think the overhead of the journaling is going to be negligable.
 
Old 04-05-2010, 05:37 PM   #10
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 500

Original Poster
Rep: Reputation: 37
Yes I will use a Corsar X128 in my laptop.
I saw some tests that show ext4 without journalling is faster.
 
Old 04-06-2010, 06:43 AM   #11
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 374

Rep: Reputation: 55
Quote:
Originally Posted by mlpa View Post
Yes I will use a Corsar X128 in my laptop.
I saw some tests that show ext4 without journalling is faster.
Speed is good, but the primary purpose of a filesystem is to securely
store data.

You can gain some speed by using noatime that hemp4fuel suggested
and also reduce unnecessary writes, but don't disable the journal.
 
Old 04-07-2010, 01:38 PM   #12
nicedream
Member
 
Registered: Feb 2010
Distribution: Arch Linux
Posts: 68

Rep: Reputation: 19
I was reading Theodore Tso's write-up on journaled/non-journaled speeds. Disabling journaling does improve performance, but the difference does appear to be negligible. However, just like using the noatime option, scaling back or eliminating swap usage, etc, it will reduce writes to the disk which should theoretically extend the life of your drive.

The decision to use or not use journaling is a personal decision - weigh the risks vs rewards. Just be aware that without the journal there is a slightly higher chance that your drive could be left in an inconstant state and you may have data loss. But recall that not too long ago ext2 was the default fs, and even now a lot of people still say ext2 is the way to go for SSDs. I don't think there is really a "right" or "wrong" setup, because SSDs are so new and there isn't much long term evidence of what is truly the best way to go.

FWIW, I wrote up a guide of everything I did to tune my SSD, in case anyone is interested in what I found.
 
1 members found this post helpful.
Old 04-07-2010, 02:59 PM   #13
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 500

Original Poster
Rep: Reputation: 37
Thanks for the tips.
I will try it.
 
Old 04-07-2010, 05:00 PM   #14
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 518

Rep: Reputation: 133Reputation: 133
You can change the journaling mode to writeback to improve performance a bit (Not sure how much on an SSD). I use writeback mode on my laptop, where power failure is not an issue and crashes are rare. I don't recommend this on a desktop.

To use writeback mode, run this on each of your ext4 partitions:
Code:
tune2fs -o journal_data_writeback /dev/sdxx
And add 'data=writeback' to your fstab entries:
Code:
...ext4 defaults,noatime,nodiratime,data=writeback
To go back to ordered mode (the default), do:
Code:
tune2fs -o journal_data_ordered /dev/sdxx
And of course, remove data=writeback from your fstab.

Last edited by piratesmack; 04-07-2010 at 05:03 PM.
 
Old 04-07-2010, 05:03 PM   #15
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 500

Original Poster
Rep: Reputation: 37
I was thinking using in my laptop, because of the SSD.

I have found this tutorial for SSD drivers in Linux


Last edited by mlpa; 04-10-2010 at 01:53 PM. Reason: New information related with SDD and TRIM
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: The Performance Of EXT4 Then & Now LXer Syndicated Linux News 0 01-19-2010 09:11 AM
A few questions SSD & Quad Core processor Robert Diggs Linux - Hardware 5 10-01-2007 12:13 PM
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 06:10 AM
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration