From owner-freebsd-fs@FreeBSD.ORG Tue Apr 20 23:44:54 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 238FF1065670 for ; Tue, 20 Apr 2010 23:44:54 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id 6745C8FC19 for ; Tue, 20 Apr 2010 23:44:52 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 5E83F45C8C; Wed, 21 Apr 2010 01:44:51 +0200 (CEST) Received: from localhost (chello089077043238.chello.pl [89.77.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 33CF745685; Wed, 21 Apr 2010 01:44:46 +0200 (CEST) Date: Wed, 21 Apr 2010 01:44:47 +0200 From: Pawel Jakub Dawidek To: Andrew Reilly Message-ID: <20100420234447.GB1737@garage.freebsd.pl> References: <20100418235428.GC4620@duncan.reilly.home> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fba/0zbH8Xs+Fj9o" Content-Disposition: inline In-Reply-To: <20100418235428.GC4620@duncan.reilly.home> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: gjournal: what is it good for? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2010 23:44:54 -0000 --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--