From owner-freebsd-geom@FreeBSD.ORG Wed Oct 17 20:13:04 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A19816A4D1 for ; Wed, 17 Oct 2007 20:13:04 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 4DA9313C43E for ; Wed, 17 Oct 2007 20:13:01 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 149F645F56; Wed, 17 Oct 2007 22:12:58 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id ED5CF45F42; Wed, 17 Oct 2007 22:12:52 +0200 (CEST) Date: Wed, 17 Oct 2007 22:12:35 +0200 From: Pawel Jakub Dawidek To: Andriy Gapon Message-ID: <20071017201235.GD50219@garage.freebsd.pl> References: <4715C3D1.3070308@icyb.net.ua> <4715F4EE.9020104@freebsd.org> <47161FD1.5010501@icyb.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zS7rBR6csb6tI2e1" Content-Disposition: inline In-Reply-To: <47161FD1.5010501@icyb.net.ua> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.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=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: gjournal: FLUSHCACHE timed out X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2007 20:13:04 -0000 --zS7rBR6csb6tI2e1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 17, 2007 at 05:44:33PM +0300, Andriy Gapon wrote: > on 17/10/2007 14:41 Eric Anderson said the following: > > Andriy Gapon wrote: > >> ad4s1ge (please don't pay attention to its slightly unusual name, this > >> is for historic reasons) is a journal partition/consumer for my /var > >> filesystem/partition/provider. > >> Size of /var is 16G, size of the journal is slightly less than 1G (1G - > >> 32 sectors actually). /var is UFS2 with softupdates enabled. > >=20 > >=20 > > Pawel, correct me if I'm wrong here - but I think you really need to=20 > > turn *off* softupdates on gjournaled file systems. >=20 > I was under a big mis-impression that I have to have softupdates enabled > for snapshots to work. Now that I know that I was wrong I will turn off > the softupdates. But it seems that there is nothing that would preclude > _in principle_ combination of softupdates/gjournal. Anyway, I care only > out of curiosity. It's not that it won't work together, but it's just hurts performance and memory consumption. > >> I noticed that I get these messages only when I run 'dump' on any of my > >> filesystems. I think that dump is using /tmp or /var/tmp for some > >> temporary data and in my setup both of those are in /var filesystem. > >> > >> So my I guess is that /var is being written "too" actively and I have = to > >> tune some parameters to make things smooth. > >=20 > > A few things to note: > >=20 > > - you can turn on 'async' option for your gjournaled file system, and= =20 > > get better performance >=20 > will do >=20 > > - you might be able to at the 'noatime' option to your file system moun= t=20 > > also >=20 > probably will do as well >=20 > > - You might try turning your journal switch time from 10 down to 5, and= =20 > > see if it alleviates some pressure on your disk. >=20 > I already did this and it helped! I don't see the messages anymore. > Thank you! > I will try to set this back to 10 after I do away with softupdates and > see what happens. >=20 > Thank you very much again. You should also try this patch: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/ata/ata-disk.c.diff?r1= =3D1.201;r2=3D1.202 BIO_FLUSH timeout was way too small. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --zS7rBR6csb6tI2e1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHFmyzForvXbEpPzQRAkScAJ9rnB4eERnKYOERIFHI2mKA+1zrIgCbBmDr UqxNSAjWPjHzGqeL8p+ewsE= =GbMN -----END PGP SIGNATURE----- --zS7rBR6csb6tI2e1--