SlackwareThis 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.
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?
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.
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.
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.