« R700, KMS, 3D, SSD, and other hardwareSSDs and filesystems »

Trackback address for this post

Trackback URL (right click and copy shortcut/link location)

16 comments

Comment from: Lionel Bouton [Visitor]
If you get libata errors isn't the likely culprit faulty hardware ?
08/09/09 @ 13:54
Comment from: Cardoe [Visitor]
Why are you getting so creative with the ext4 mount options? This is all I've got:

/dev/stewie/portage /usr/portage ext4 noatime 0 2

Using an lvm hence the weird device point but its been working successfully for a few months now.
08/09/09 @ 14:44
Comment from: Marens [Visitor]
Did you consider xfs? mounts amazingly fast and is in use since several years. Don't know if you'd miss any features compared to ext4: http://en.wikipedia.org/wiki/Comparison_of_file_systems

/me waiting for somebody to scream
"hell no, dont use it, you'll need one no wait two ups or you'll lose your data"
08/09/09 @ 14:46
Comment from: Petri Järvenpää [Visitor] · http://mylinuxhtpcproject.blogspot.com/
OpenSUSE 11.1 does not yet have EXT4 support by default, so I chose to install on EXT2 partition. I'm using OCZ Vertex as my root partition and so far it seems to work okay. Besides obviously no journaling and using noatime options to mount I've mounted /tmp, /var/log, /var/tmp and /var/spool on RAMdrives.

Mr. Tso had quite a nice writeup on his blog (http://thunk.org/tytso/blog/category/computers/ssd/) on how to get the drive aligned correctly on Linux.
08/09/09 @ 19:54
Comment from: Giacomo [Visitor]
The libata errors make me wonder if the SSD was good to begin with... Have you run a r/w badblocks test on it?
08/09/09 @ 20:46
Comment from: Robert [Visitor]
I cannot comment on the not wanting to remount a read only filesystem as read write, but the mounting issue with /var and /usr/portage sounds a lot like what happens when the superblock gets located on a failed or failing hard drive sector. I recomend that you run a data destructive 2 or 3 pass random patern badblocks test on the ssd. And check the data cabling for kinks and other damages. If the ssd checks out I would get some help from the ext4 dev team. You may have found a really nice bug.
08/09/09 @ 21:00
Comment from: Josh Saddler [Member] Email · http://dev.gentoo.org/~nightmorph
@Cardoe:

'Cause supposedly, those are the best options for SSDs to reduce writes and take full advantage of the SSD's capabilities.

@Marens:

Heh, I knew an XFS fan would come out of the woodwork at some point. No thanks; I've posted elsewhere on why it's a bad idea, and there's a good amount of anecdotal evidence and benchmarks that show why XFS is overall not as good as ext3/ext4, both for performance and writes on SSD drives. I don't work with GB-sized files, just small text documents and audio files. Nothing over a few MB in size.

@everyone else:

Thanks for the suggestions on libata troubleshooting -- the thing is, like I said, I'm not even sure it's libata that was generating some of the weirder error messages. It wasn't something really obvious like "I/O error on /dev/sdb", but more of a dmesg-style output. I can't even recall what it was, but it wasn't the usual "bad mount" error.

I'll be reinstalling yet again, and this time I'll just use ReiserFS for everything. If the errors return after repartitioning and mkfsing, then I'll know it's a hardware issue. I've done my best to ensure that the SATA cables are good, the drive's not overheating, and it's getting steady voltage. ReiserFS may have slow mounts and journal replays, thus bogging down the bootup, but I can live with that if it means I can have a working Gentoo box.
08/09/09 @ 21:33
Comment from: Toralf Förster [Visitor]
I'd never trust EXT4 before additional 1 year of development was made, and it seems that others made simialr bad experiences w/ ext4 : http://lkml.org/lkml/2009/8/11/211
08/11/09 @ 20:04
Comment from: Lordof7 [Visitor]
Josh,
I remember reading about problems mounting ext filesystems with non-default journal settings. I think the problem was the journal couldn't be changed on the fly (during the remount to rw). These posts explain solutions; unfortunately, I can't find the post that explained the problem more intelligently than I am:

Talks about ext3, but I think the principle is the same:
http://forums.gentoo.org/viewtopic-t-786932-highlight-writeback.html

Look to the bottom of this thread (#6):
http://ubuntuforums.org/showthread.php?t=1118681

Look at entry #22; notice the rootflags entry in grub telling the system early what journal to use.
http://bbs.archlinux.org/viewtopic.php?id=62524

It certainly doesn't explain the non-root drives failing, or, of course, the big problem of data loss. (That may have been the bad drive though.) FWIW, I still use ext3...
08/12/09 @ 21:02
Comment from: Josh Saddler [Member] Email · http://dev.gentoo.org/~nightmorph
@Lordof7:

Thanks for the info; it's good reading anyway.

I had already edited mke2fs.conf before applying the filesystem to the SSDs, but I didn't know about the rootflags option for Grub. Maybe it would have made a difference, maybe not. :)

I ended up getting a working install with reiserfs and the "tail,noatime" options for / -- I would normally use "notail", but since space is at a premium on this disk, packing stuff in is worth the extra CPU time. The media HDD, which is also on reiserfs, uses "notail" since it's much larger.

Subjectively, so far, there's not a huge difference between the old HDDs and the new SSD. Startup times are slightly decreased, but mostly I'm waiting for the long "waiting for uevents to be processed by udev" message, or whatever it is. And yes, checking the ReiserFS journal takes awhile when the media HDD is mounted. Mount times aren't noticeable on the SSD.

Application launching is faster, though Firefox and Thunderbird are still almost as slow as ever. Other apps laod instantly, even when launching several all at once. It's also faster to start X, Slim, and login to Xfce.

I'll post more thoughts and hopefully some benchmarks soon-ish.
08/12/09 @ 23:55
Comment from: Nirbheek Chauhan [Visitor]
/dev/sda1 / ext4 noatime,data=writeback,commit=60,nobarrier 0 1

man mount says:
"To use modes other than ordered on the root file system, pass the mode to the kernel as boot parameter, e.g. rootflags=data=journal."

So, yeah, that explains why you get the "unknown option" error.
08/14/09 @ 04:44
Comment from: Dima [Visitor]
I was more than excited when I saw the topic.
I'm a happy owner of 30GB SuperTalent MX drive for over a year.
The frustration i went through during the first month made me to install Vista on it just to make sure it's working and it is possible to use it as system drive.
Any typical installation failed with mount/FS errors. I tried several FSs with probably any sane option combination.
Drive slashed into 3 parts /boot / and C: (gaming).
Ended up with installing Sabayon and then removing all but /boot and modules.
Then I was able to boot into my old Gentoo system. Just copied from old drive.
I used to ReiserFS, but tried to find something better.
From this and previous post i'll definitely use scheduler idea and tempfs for tmp/portage. Anyway I can not find use for 8GB (no swap still leaves to much available)
08/17/09 @ 17:53
Comment from: Chris Gianelloni [Visitor] · http://wolf31o2.org
One helpful thing with FF and TB is to use sqlite3 on the command line to VACUUM the database files (while not being used, of course) which will clean up older entries. This should speed up loads times fairly significantly, if you typically make lots of changes (or have never done a VACUUM).

Why Firefox/Thunderbird do not do this themselves, I have no idea.
09/04/09 @ 22:27
Comment from: Josh Saddler [Member] Email · http://dev.gentoo.org/~nightmorph
@Chris:

Hey, long time no see! :)

I didn't know it was even possible to clean up Mozilla performance just by using sqlite to do the dirty work.

On a related note, I did find a couple of different methods on the Gentoo Forums for improving FF/TB performance regardless of hard disk type . . . by running 'em from RAM. There are a couple of startup scripts that put the necessary config directories into a RAMdisk and periodically backing them up to the HDD, and flushing everything to disk when the app is closed. Supposedly it dramatically improves the sqlite backend performance, reducing hitches when loading multiple tabs, for example.
09/06/09 @ 00:15
Comment from: Artem S. Tashkinov [Visitor] Email
IMO any FS with journalling is a suicide for any SSD storage.

That means in Linux we've got few options: ext2, ext4 _without_ journal and ... I don't know anything else :)
09/12/09 @ 21:10
Comment from: Werner [Visitor]
Well it seems ext4 is a showstopper.
I had ue 2.3 installed on a corsair x128.
started good for about 4 times,the 5th time errors when booting.restarted computer...corsair completely dead.
11/16/09 @ 20:04

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)