LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-02-2012, 02:56 PM   #1
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
ReiserFS problems solved by switching to ext4


I recently switched all five of my home PCs from ReiserFS to ext4. The oldest machines had been using ReiserFS 3.6 since Slackware 10.0 came out in 2004. For consistency, I continued to use ReiserFS on newer machines and newer Slackware releases. Today, all of my machines run a snapshot of Slackware64 or 32-bit Slackware from last year, after 13.37, with a custom 2.6.39.4 kernel.

I had noted two problems with ReiserFS:
  1. When writing large amounts of data (100MB-2GB), all shell windows on the computer would freeze for several seconds to as long as ten or twenty seconds. This was very annoying. I'm guessing that there is some fairness problem or long serial path in ReiserFS. Switching to ext4 completely eliminated the pauses. Subjectively, ext4 seems faster than ReiserFS.
  1. On one machine with two hard disks and two optical disks, I would occasionally experience data corruption when all four drives were in use simultaneously. The data corruption would happen about once every 1-2 months... it showed up as a failure to open a subdirectory during a recursive traversal. I'm guessing that this may be due to a lock or race problem in ReiserFS. I haven't run ext4 long enough to confirm that this problem has truly gone away, but I suspect that it has.

So... if you are still using ReiserFS, now is a good time to switch! I wanted to switch filesystems in preparation for upgrading to Slackware 14.0.
Ed
 
Old 09-02-2012, 03:44 PM   #2
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
I found this on Google.

Also, this.

ReiserFS isn't developed anymore (AFAIK). I think Reiser4 is more upstream.

Alex Brinister
 
Old 09-02-2012, 03:50 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I got the impression ReiserFS was pretty much over when Hans Reiser went to jail?
Seems the problems are built in:
http://en.wikipedia.org/wiki/ReiserFS#Criticism
 
Old 09-02-2012, 04:00 PM   #4
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Alex - the pauses that I was experiencing were not hangs or crashes. The computer always eventually responded. The pauses were very reproducible.

273 - yes. ReiserFS is a bad choice today, but it was the preferred filesystem on Slackware for years. There are likely a lot of people who have kept their data on ReiserFS through multiple Slackware upgrades.
Ed
 
Old 09-02-2012, 04:33 PM   #5
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Oh I see. That's interesting.

It used to be the default on openSuse until 2006.

Alex Brinister
 
Old 09-02-2012, 05:15 PM   #6
Pixxt
Member
 
Registered: May 2008
Distribution: Slackware, Debian,
Posts: 284

Rep: Reputation: 185Reputation: 185
I quit using Reiser many years ago after it ate itself a few times. Never had a FS do that ever. Put XFS on the same drive no problems.

Also I observed booting times on ResierFS going up by minutes the older the install was over time. It was a shitty FS, FAT under Windows 9x gave me less problems. It got popular by the fact it was the first journaling fs for Linux.
 
Old 09-02-2012, 05:41 PM   #7
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Pixxt - the data corruption bug that I noted above was the only functional problem I encountered. Fortunately, I didn't lose data. I'm assuming this bug is in ReiserFS, but I'm not completely sure.

I think ReiserFS was a great filesystem at the time it was introduced, but its development stopped when Hans Reiser went to jail. ReiserFS didn't keep up with the locking changes in the kernel (the pauses started appearing around the same time the kernel locking underwent an overhaul), and it also didn't keep up with quad-core CPUs. ReiserFS may still be part of the kernel, but it doesn't perform well (or possibly even work correctly) today.
Ed
 
Old 09-02-2012, 06:00 PM   #8
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
ReiserFS was a great File system for it's time. Between all the problems EXT3 was trying to solve for EXT2 and data loss problems, ReiserFS was the most advanced file system we had at the time in terms of data integrity checking, loss prevention, corruption prevention, and performance. On old Pentium 3 and Athlon single core CPUs it scaled well and had great performance where other file systems still had issues.

When EXT4 solved the problems of EXT3 and EXT2 it also deprecated ReiserFS's usefulness because EXT4 performed not only the same functions but had better performance and CPU scaling abilities for larger hard drives. It also was supported by all major bootloaders at the time including LILO.

However, EXT4's usefulness is now being limited by BtrFS's capabilities which are attempting to match and surpass the abilities of Sun's ZFS obfuscating EXT2/3/4 down to being useful only as boot partition styles. The only problem is BtrFS can not be natively booted by certain bootloaders like LILO, yet.

For a modern system, I'd advise against using ReiserFS unless no other file systems like EXT4, BtrFS, and such are natively supported. It's not able to scale well with modern CPUs and doesn't have good performance against modern disk arrays.

Reiser4 will probably never be completed or added to the kernel outside or 3rd party patches and development for both ReiserFS (v3) and Reiser4 will probably never be picked up again unless it's to remove ReiserFS support entirely or move it over to FUSE and begin deprecation processes to eventually remove it entirely.

Last edited by ReaperX7; 09-02-2012 at 06:04 PM.
 
Old 09-03-2012, 12:14 PM   #9
durval
LQ Newbie
 
Registered: Mar 2012
Posts: 16

Rep: Reputation: Disabled
Hello EdGr,

I'm a long time ReiserFS user (since 2001) and I've been using it almost exclusively all of these years on all my servers (between my home server, my company's servers, and even our customers' servers, we have some tens of terabytes of data on it). During all that time, ReiserFS has proved to be the most robust filesystem we have ever used (and we used quite a lot of them): in situations where Ext3 would lose data and crash, ReiserFS simply kept going, including a case of silent disk corruption due to hardware issues on 2 disks of a 3-disk RAID5 array (the only data we lost was in the blocks corrupted by the bad disks, and this data was promptly restored from the backup; the rest of the filesystem continued in use and working while we diagnosed the situation and eventually replaced those disks, which we did without even having to stop the machine: we simply replaced a disk at a time and then rebuilt the RAID).

Quote:
Originally Posted by EdGr View Post
Pixxt - the data corruption bug that I noted above was the only functional problem I encountered. Fortunately, I didn't lose data. I'm assuming this bug is in ReiserFS, but I'm not completely sure.
It's a badly guarded secret (for those that follow the reiserfs-devel mailing list) that maintenance of the ReiserFSv3 code in the kernel started being not that good at some point after kernel 2.6.32 was released; I have personally had lots of issues (like spontaneously disappearing and reappearing files) with kernel 2.6.37, so I think kernel 2.6.32.x is really the last one where ReiserFSv3 can be used reliably (I use kernel 2.6.27.x in production here, and kernel 2.6.32 in development/test machines).

Quote:
I think ReiserFS was a great filesystem at the time it was introduced, but its development stopped when Hans Reiser went to jail.
Not really true: there are a handful of developers still working on maintaining at least ReiserFSv3 (can't say anything about V4 as I don't use it and so do not follow its development), not only on the reiserfs-devel mailing list, but also from SUSE (most notably Jan Kara and Jeff Mahoney) and a few others. Patches to fix problems on ReiserFS with the newest kernels show up at least once or twice a month, see for example these two:

http://www.spinics.net/lists/reiserf.../msg03226.html
http://www.spinics.net/lists/linux-f.../msg57249.html

What is really missing is the momentum that Namesys (Hans Reiser's company) and its employees gave to the ReiserFS development and maintenance, and here I agree that the situation is not only bad but still deteriorating.

Quote:
ReiserFS didn't keep up with the locking changes in the kernel (the pauses started appearing around the same time the kernel locking underwent an overhaul), and it also didn't keep up with quad-core CPUs. ReiserFS may still be part of the kernel, but it doesn't perform well (or possibly even work correctly) today.
It mostly works as long as you keep your kernel to the latest releases of 2.6.32.x, or even better, 2.6.27.x; but I guess you were referring to newer kernels, which I feel no urge to upgrade to (I doubt very much that Reiserfs is the only part of these kernels with issues, due IMNSHO to the frantic "leave no prisoners" attitude the kernel developers have been taking lately).

Cheers,
--
Durval Menezes.

Last edited by durval; 09-03-2012 at 12:21 PM.
 
Old 09-03-2012, 12:18 PM   #10
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
I remember a filesystem comparison table from a few years ago, where one of ReiserFS' few drawbacks was "Murders your wife".

http://farm4.static.flickr.com/3281/...4e7d8911_o.jpg
 
Old 09-03-2012, 12:32 PM   #11
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
Luckily, that was removed from Wikipedia quickly enough upon being reported.
 
Old 09-03-2012, 01:16 PM   #12
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Hi Durval,

Quote:
It's a badly guarded secret (for those that follow the reiserfs-devel mailing list) that maintenance of the ReiserFSv3 code in the kernel started being not that good at some point after kernel 2.6.32 was released; I have personally had lots of issues (like spontaneously disappearing and reappearing files) with kernel 2.6.37, so I think kernel 2.6.32.x is really the last one where ReiserFSv3 can be used reliably (I use kernel 2.6.27.x in production here, and kernel 2.6.32 in development/test machines).
That sounds similar to the data corruption problem that I was experiencing: recently-created files would fail to show up in the directory (at least momentarily). The bug would occur only if there was simultaneous activity on the optical and hard disks. I didn't report the problem because it is nearly impossible to reproduce.

My experience has also been that ReiserFS was very reliable prior to 2010.

This morning, I noticed that the occasional video playback stutters on my oldest PC (750MHz Pentium III) went away when I switched from ReiserFS to ext4. Up until now, I had thought that old computer was too slow for video.
Ed
 
Old 09-03-2012, 01:24 PM   #13
durval
LQ Newbie
 
Registered: Mar 2012
Posts: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by EdGr View Post
Hi Durval,
That sounds similar to the data corruption problem that I was experiencing: recently-created files would fail to show up in the directory (at least momentarily). The bug would occur only if there was simultaneous activity on the optical and hard disks. I didn't report the problem because it is nearly impossible to reproduce.
One way to reliably reproduce this issue in a few hours is to run the memtest.sh script by dledford: http://people.redhat.com/dledford/memtest.shtml

This script was originally intended to expose hard-to-reproduce memory (hardware) errors, but I've found that the stress that it puts into a filesystem is also a good test of its performance and reliability under heavy load.

Quote:
My experience has also been that ReiserFS was very reliable prior to 2010
Same thing here.

Quote:
This morning, I noticed that the occasional video playback stutters on my oldest PC (750MHz Pentium III) went away when I switched from ReiserFS to ext4. Up until now, I had thought that old computer was too slow for video.
Ed
I have some PIII machines still in production (industrial server hardware in special applications) and they are all running kernel 2.6.27 with ReiserFS with no issues at all. But then, they do not play any video ;-)

Cheers,
--
Durval.
 
Old 09-03-2012, 01:33 PM   #14
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Quote:
Originally Posted by durval View Post
One way to reliably reproduce this issue in a few hours is to run the memtest.sh script by dledford: http://people.redhat.com/dledford/memtest.shtml

This script was originally intended to expose hard-to-reproduce memory (hardware) errors, but I've found that the stress that it puts into a filesystem is also a good test of its performance and reliability under heavy load.
Interesting.

That script is doing the same thing that my script was doing whenever I saw failures: unpacking a tar file and recursively diff'ing the directories. I ran several instances of the script.

I'm not going to debug this now.
Thanks,
Ed

Last edited by EdGr; 09-03-2012 at 01:43 PM.
 
Old 09-03-2012, 01:59 PM   #15
durval
LQ Newbie
 
Registered: Mar 2012
Posts: 16

Rep: Reputation: Disabled
Hi EdGR,

Quote:
Originally Posted by EdGr View Post
Interesting.
I'm not going to debug this now.
Ditto ;-) I expect to be in your situation when ZFSOnLinux stabilizes enough (and has good enough performance) for me to migrate to it; with any luck I will be able to bypass ext4 completely and (I hope) migrate to BtrFS if and when it achieves a reasonable level of maturity.

Even for people like me who are still using it, ReiserFS is really in a "end-of-life" situation... I've determined that it works very well up to and including 2.6.32, and that's where I will stay until the time I can reliably migrate to something equivalent in terms of speed and reliability... and there's no rush as 2.6.32 is the official RHEL6 kernel and so will be supported by RH -- including backports/cherry-picking from newer kernels to enable it to continue to run on newer hardware) at least until 2016.

Cheers,
--
Durval Menezes.
 
  


Reply

Tags
ext4, reiserfs



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
the major difference between ext4 and reiserFS hplc Linux - Newbie 9 11-06-2014 04:01 PM
[SOLVED] Should i use ext4 or reiserFS? Danish Ali Linux - Kernel 13 11-09-2011 11:26 AM
[SOLVED] Permanent filesystem corruption on reiserfs, ext3 and ext4 - disk failure? trumpet_tom Linux - Hardware 9 02-11-2010 05:29 AM
Could zero-length partition error on ext4 ext HD be solved by switch to reiserfs? filosofic Linux - Hardware 5 01-12-2010 09:19 AM
( Solved ) slack 12.2 not see fs ext4 ...why? afreitascs Slackware 8 09-05-2009 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:18 AM.

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