Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2010 01:44:47 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Andrew Reilly <areilly@bigpond.net.au>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: gjournal: what is it good for?
Message-ID:  <20100420234447.GB1737@garage.freebsd.pl>
In-Reply-To: <20100418235428.GC4620@duncan.reilly.home>
References:  <20100418235428.GC4620@duncan.reilly.home>

next in thread | previous in thread | raw e-mail | index | archive | help

--Fba/0zbH8Xs+Fj9o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Apr 19, 2010 at 09:54:28AM +1000, Andrew Reilly wrote:
> So, I've had quite a bit of yoyo-mode over the last week, caused
> by the journal overflow panic that I reported in the previous
> message, and I've noticed that my gjournalled file systems do
> not (ever) mark themselves clean after the journal is replayed,
> and so still require fsck, which takes just as long as it ever
> did.

When gjournal is in use, fsck is still needed, indeed, but only to fix
one type of inconsistencies: orphaned files. This is something we cannot
do without fsck. Still such fsck should be much, much faster.
There are various optimizations that allow to stop fsck as soon as we
fix last orphaned file. If there are no such files, we won't even scan
single cylinder group. We observed fsck time to drop from 8h to few
seconds, so something must be wrong with your configuration if it
takes as much time as without gjournal. You can still run full fsck on
gjournaled file system, of course, but in regular use, 'fsck_ffs -p'
should perform fast fsck.

--=20
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--Fba/0zbH8Xs+Fj9o
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkvOPG8ACgkQForvXbEpPzSNigCdE1OsXxLfe5H+z8yaA0VyaWmq
J2oAoKMaDtsqCNqxlz/HJ/LcMwBSPSIk
=15NY
-----END PGP SIGNATURE-----

--Fba/0zbH8Xs+Fj9o--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100420234447.GB1737>