Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
03-12-2010, 01:22 PM
|
#1
|
|
Member
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 424
Rep:
|
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?
|
|
|
|
03-12-2010, 08:52 PM
|
#2
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
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.
|
|
|
|
03-13-2010, 03:13 AM
|
#3
|
|
Senior Member
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,511
Rep: 
|
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
|
|
|
|
04-05-2010, 05:22 AM
|
#4
|
|
Member
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 424
Original Poster
Rep:
|
And about Trim Support?
In SLackware -current is available? I need to configure something?
|
|
|
|
04-05-2010, 11:24 AM
|
#5
|
|
Member
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 181
Rep:
|
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.
|
04-05-2010, 01:05 PM
|
#6
|
|
Member
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 424
Original Poster
Rep:
|
Thanks for the reply.
I will use discard option.
And how to disable journelling?
|
|
|
|
04-05-2010, 03:01 PM
|
#7
|
|
Member
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 181
Rep:
|
From what I have read there is no real advantage to disabling journaling in ext4 with a ssd.
|
|
|
|
04-05-2010, 03:20 PM
|
#8
|
|
Member
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 424
Original Poster
Rep:
|
Journallig don't write in the disk in period cycles?
Without journalling the system is faster, I think.
|
|
|
|
04-05-2010, 05:35 PM
|
#9
|
|
Member
Registered: Aug 2006
Distribution: Slackware
Posts: 763
Rep:
|
If you are going to use an ssd, I think the overhead of the journaling is going to be negligable.
|
|
|
|
04-05-2010, 05:37 PM
|
#10
|
|
Member
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 424
Original Poster
Rep:
|
Yes I will use a Corsar X128 in my laptop.
I saw some tests that show ext4 without journalling is faster.
|
|
|
|
04-06-2010, 06:43 AM
|
#11
|
|
Member
Registered: May 2005
Location: Greece
Posts: 372
Rep:
|
Quote:
Originally Posted by mlpa
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.
|
|
|
|
04-07-2010, 01:38 PM
|
#12
|
|
Member
Registered: Feb 2010
Distribution: Arch Linux
Posts: 68
Rep:
|
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.
|
04-07-2010, 02:59 PM
|
#13
|
|
Member
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 424
Original Poster
Rep:
|
Thanks for the tips.
I will try it.
|
|
|
|
04-07-2010, 05:00 PM
|
#14
|
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 513
Rep: 
|
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.
|
|
|
|
04-07-2010, 05:03 PM
|
#15
|
|
Member
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 424
Original Poster
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:42 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|