From owner-freebsd-current@FreeBSD.ORG Tue Apr 24 06:47:11 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2EA8D16A400 for ; Tue, 24 Apr 2007 06:47:11 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id B6A8F13C459 for ; Tue, 24 Apr 2007 06:47:09 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.61]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id l3O6OISb017636 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Apr 2007 15:54:19 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-current@freebsd.org Date: Tue, 24 Apr 2007 15:54:11 +0930 User-Agent: KMail/1.9.5 References: <20070424051420.GA84831@mero.morphisms.net> In-Reply-To: <20070424051420.GA84831@mero.morphisms.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart61970024.LlYytWbUgG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200704241554.12605.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.58 on 203.31.81.10 Cc: William Josephson , current@freebsd.org Subject: Re: ATA FLUSHCACHE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 06:47:11 -0000 --nextPart61970024.LlYytWbUgG Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 24 April 2007 14:44, William Josephson wrote: > I've recently installed -CURRENT on a new machine after the > LCD in my old one died. I now have ZFS running as the root > filesystem. The result is very pleasant if a little slow, > although that may be my disk. I have noticed a fair number > of messages of the form ``ATA - FLUSHCACHE timed out'' while > running with ZFS. Is this expected behavior when running on > the bare metal? I see this when using gjournal too. I suspect the timeout on the flush cache command needs to be increased.=20 I haven't got around to testing it but you could try increasing the=20 timeout in ata-disk.c (around line 280) -> case BIO_FLUSH: request->u.ata.lba =3D 0; request->u.ata.count =3D 0; request->u.ata.feature =3D 0; request->bytecount =3D 0; request->transfersize =3D 0; request->timeout =3D 1; request->retries =3D 0; request->flags =3D ATA_R_CONTROL; request->u.ata.command =3D ATA_FLUSHCACHE; break; =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart61970024.LlYytWbUgG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBGLaKM5ZPcIHs/zowRAiA9AJ42aDlfSy/1F13UN6B/VvJHm8KixQCcDjPm 2Lr98NGiKJPZEm/0J048qeI= =XU8t -----END PGP SIGNATURE----- --nextPart61970024.LlYytWbUgG--