The journalling file system saga
delphij at frontfree.net
Thu May 13 10:47:19 PDT 2004
On Thu, May 13, 2004 at 10:30:25AM +0100, John Monkey wrote:
> [copied from freebsd-questions@]
> Ladies and Gents,
> The lack of a journalling file system for FreeBSD has been discussed
> over and over on the mailing lists. I have read and understood all the
> advocacy for softupdates and background fsck. Softupdates gives great
> performance benefits. Background fsck is useful, but with seriously
> degraded performance until it completes.
Personally, I'd prefer a optimization on Soft Updates, and the snapshot
code itself. Given the complexity of the code, this might be something
hard to do, however, I believe this is valuable. To tell the truth,
throughly read and attempt to optimize the Soft Updates is on my TODO list :-)
IIRC I believe that there is not "objection" for a journalling filesystem
to be exist in FreeBSD, however, it seems that there are too many people
has interest in other areas, and there are simply few people to have
interest and time to develop one for FreeBSD.
Porting NetBSD's LFS implementation might be a good idea, though, however,
I am not sure how much could be gained from this and whether it is
valuable to do so.
> I had to build a storage system this week with a capacity of 1.6TB.
> Regrettfully I decided to use Linux with XFS as the thought of waiting
> for fsck to complete in the event of a problem makes me wince. I
> experimented with FreeBSD, using two 800GB partitions and things like
> that, but in the end it comes back to the fsck if for any reason the
> machine goes down uncleanly.
Unfortunatelly, I think there exists something wrong with FreeBSD's
snapshot code, or somewhere else. This is hard (for me) to track down,
and I am looking for some way to trigger the problem.
I have encounted some problem on a production box, however, it is not
permitted to be down for a long time so I got nothing :-(
> I am a big advocate of FreeBSD. I have great reliability on our 60+
> FreeBSD machines. I'm ignoring all suggestions for UPSs and the like. I
> know all about that. That's not the point. The crux is FreeBSD needs a
> journalling file system, preferably IMHO based on UFS which we are all
> used to. Solaris has logging. It works fine for everything we use it
> for. It's a mount option, for those who don't know about it. In other
> words I can turn it on off. If I've had to turn away from FreeBSD for
> this requirement, I can imagine many other people will have too.
No idea. Maybe someone want to port some journalling file systems to
FreeBSD however I did not saw a mature implementation, nor in ports,
which provides the possiblity to port a GPL'ed file system to FreeBSD
What's more, while it is true that journalling is much easier to implement,
it does not guarantee file system consistency well as SoftUpdates can,
when the latter is correctly implemented, and without a non-volatile
> There's talk of XFS and Reiserfs ports and this and that, the legal
> issues of GPL code, blah blah blah. I see that Wasabi provide (sell) a
> journalling file system that "builds on the established and trusted
> Berkeley Unix Filesystem" . I have no idea of the cost. The point is,
> it can be done.
I don't think the license is a real issue. It is possible to maintain
a kernel in ports, and even the base if it is not an essential component,
say, you don't have to install it before your kernel can run :-) The
most important problem might be there is not someone who have time to
invest into the port effort - there are needs, but nobody wants to work
> Let's look at the reality of getting a journalling file system into
> FreeBSD. What would it cost to commission someone who knows enough about
> file systems (preferably UFS IMHO) to write the code? Would anyone be
> prepared to contribute to a fund to get this done? How long would it
> take? Is anyone remotely interested in this? I would propose that those
> who put up the money get to decide how the journalling would be
> implemented. No ticket, no laundry
I think porting NetBSD's LFS implementation (which is similiar with FFS)
might be a good point to start.
Porting a filesystem to FreeBSD is not something so straightforward.
Taking NetBSD's LFS system as example, the VM system is quite different
between NetBSD and FreeBSD, which will make the port hard. I don't know
exactly how much will it cost, but I bet it will at least cost much time.
It will be our pleasure to see if FreeBSD has a journalling implementation,
however, (personally), it will be better to see a softupdates implementation
which outperforms, and that might be those who have interest in FS area.
Additionally I do not see so many reasons why we must have a journalling
filesystem implementation so impendently. There are more interesting
features in XFS and ReiserFS which does not depend on journalling which
I think is valuable to take part in a new file system.
Xin LI <delphij frontfree net> http://www.delphij.net/
See complete headers for GPG key and other information.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20040514/6524c846/attachment.bin
More information about the freebsd-fs