Re: Sidetracked: why gjournal over soft-updates (Was: Re: UFS2 Journaling implementation detail)



2008/4/19 Mel <fbsd.questions@xxxxxxxxxxxxxxxxxxxx>:
On Friday 18 April 2008 17:40:04 Ivan Voras wrote:

> > 5. "Some UFS implementations avoid journaling and
> > instead implement soft updates: they order their
> > writes in such a way that the on-disk file system is
> > never inconsistent, or that the only inconsistency
> > that can be created in the event of a crash is a
> > storage leak. To recover from these leaks, the free
> > space map is reconciled against a full walk of the
> > file system at next mount." -
> > (http://en.wikipedia.org/wiki/Journaling_file_system)
> >
> > So the disadvantage of Soft Update is it is necessary
> > to run fsck after reboot in event of a crash or power
> > failure?
>
> Yes. The advantage is that practically, the data is as safe as with
> journalling.

I've been following this with interest, however it's still not clear to me,
why I'd want a journaling filesystem, because:
1) If you have soft-updates the data is as safe as with journal
2) If you have soft-updates fsck will run in the background
3) Soft-updates don't require diskspace.

So...other then "journaling filesystems are cool", what's the real advantage?

gjournal is a kind of hack and it's only usable for avoiding fscks.
It's actually slower than softupdates for high-demand disk loads.
"Real" journalling file systems would have the following benefits, as
replies to the points from your post:

1) Soft-updates were created in a different time, with different
requirements than modern hard drives (especially desktop hard drives)
can deliver. Especially, SU requires that data it once sends to the
drive gets written immediately, not cached by the drive. Modern
desktop drives don't do that so journaling is today actually safer
than SU (because it requires smaller, compact data to be written to
the journal, instead of scattered bits of data across the disk drive
like SU does). There are reasons why there's only one single
soft-updates file system in existence today while there are dozens of
journaled file systems. Soft-updates is infinitely better than
nothing, but at the very least it needs to be seriously updated to be
useful for professional purposes today.
2) Background fsck is considered unsafe by many high-end users of
FreeBSD, especially with large drives (many terabytes). One of the
reasons for that is because it relies on file system snapshots which
have in the past behaved quirky. Another reason to avoid background
fsck-s is that some applications require all their disk IO bandwith
immediately on boot, and background fsck may "steal" the bandwidth
while it's running. On the other hand, for desktop-sized drives and
low-demanding purposes, background fsck works ok.
3) "Real" journalling file systems have journals sized in the order of
dozens of megabytes (e.g. 10 MB - 50 MB) because they don't need to
journal every single IO operation like gjournal does. You'll agree
that those sizes are trivial for todays drives.

For details, you can search the mailing list archives - what I've said
is nothing original and the topic has been talked about a lot.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: hard drive scrubbing utility
    ... because it would have to write the *entire* disk. ... drives has increased, but not proportional to their density. ... But a scrubber has to actually *write* every sector of the hard drive. ... Some friends of mine worked on the Andrew File System at CMU, ...
    (microsoft.public.vc.mfc)
  • Re: Windows eXcresence Personified and disappearing HDs
    ... file system, and this file system is at risk. ... Configure your drives so the new one is Master and old one Slave. ... I'd cherry-pick the data off from DOS mode (thank goodness he wasn't ... So far, so good - no need to install XP, blah blah blah. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Page fault in FreeBSD 5.3 on IBM e325, Dual AMD64 2.2GHz, 4GB RAM, ServeRAID 6M - debug logs
    ... Console: serial port ... <ACPI PCI bus> on pcib0 ... ips0: logical drives: 1 ... FILE SYSTEM CLEAN; SKIPPING CHECKS ...
    (freebsd-current)
  • Re: Upgrade Time
    ... > "Robert Stewart" wrote in message ... I also have a question about the file system. ... Both drives are using the FAT32 system that ME requires. ... The>> information that came with the upgrade states that I can convert to NTFS> at ...
    (microsoft.public.windowsxp.newusers)
  • Re: Dumb filesystem idea
    ... Im about to try a disklayout experiment and I wanted to ask everyone if ... SCSI is too expensive to waste on 10GB drives. ... losing the ability to have a high-capacicy file system. ... fault tolerance of RAID 1 and RAID 5 are nearly the same, ...
    (freebsd-questions)