From owner-freebsd-geom@FreeBSD.ORG Wed Oct 17 11:41:49 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 3135C16A4E6; Wed, 17 Oct 2007 11:41:49 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from ns.trinitel.com (186.161.36.72.static.reverse.ltdomains.com [72.36.161.186]) by mx1.freebsd.org (Postfix) with ESMTP id 79D6813C46A; Wed, 17 Oct 2007 11:41:45 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from proton.storspeed.com (209-163-168-124.static.twtelecom.net [209.163.168.124]) (authenticated bits=0) by ns.trinitel.com (8.14.1/8.14.1) with ESMTP id l9HBfhas071547; Wed, 17 Oct 2007 06:41:44 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <4715F4EE.9020104@freebsd.org> Date: Wed, 17 Oct 2007 06:41:34 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Andriy Gapon References: <4715C3D1.3070308@icyb.net.ua> In-Reply-To: <4715C3D1.3070308@icyb.net.ua> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on ns.trinitel.com Cc: Pawel Jakub Dawidek , 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 11:41:49 -0000 Andriy Gapon wrote: > Couple of days ago I started using gjournal on FreeBSD 6.2 using a patch > from here: > http://people.freebsd.org/~pjd/patches/gjournal6.patch > > I actually had to make 4 minor and obvious tweaks to the patch to make > it apply cleanly to my src. > I started to get the following messages sometimes: > > kernel: ad4: FAILURE - FLUSHCACHE timed out > kernel: GEOM_JOURNAL: Flush cache of ad4s1ge: error=5. > kernel: ad4: FAILURE - FLUSHCACHE timed out > kernel: GEOM_JOURNAL: Flush cache of ad4s1ge: error=5. > kernel: ad4: FAILURE - FLUSHCACHE timed out > kernel: GEOM_JOURNAL: Flush cache of ad4s1ge: error=5. > vvvvvvvvv this one is unusual and is found only once > kernel: handle_workitem_freeblocks: block count > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Ok, that's interesting.. Other threads are talking about a similar warning, not related to gjournal. > 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. Pawel, correct me if I'm wrong here - but I think you really need to turn *off* softupdates on gjournaled file systems. > 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. A few things to note: - you can turn on 'async' option for your gjournaled file system, and get better performance - you might be able to at the 'noatime' option to your file system mount also - You might try turning your journal switch time from 10 down to 5, and see if it alleviates some pressure on your disk. Eric