From owner-freebsd-current@FreeBSD.ORG Sun May 16 10:45:31 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA75216A4CE for ; Sun, 16 May 2004 10:45:31 -0700 (PDT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D46043D31 for ; Sun, 16 May 2004 10:45:31 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: from freebsd.org (junior-wifi.samsco.home [192.168.0.11]) by pooker.samsco.org (8.12.10/8.12.10) with ESMTP id i4GHoku6098150; Sun, 16 May 2004 11:50:46 -0600 (MDT) (envelope-from scottl@freebsd.org) Message-ID: <40A7A8AB.2000707@freebsd.org> Date: Sun, 16 May 2004 11:45:15 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040304 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson References: <20040515220258.H920@ganymede.hub.org> <20040515233728.Q30269@ganymede.hub.org> <20040516163039.GE29158@dan.emsphone.com> <40A79A54.3090703@freebsd.org> <20040516170441.GA80376@dan.emsphone.com> <40A7A143.7070907@freebsd.org> <20040516173954.GB80376@dan.emsphone.com> In-Reply-To: <20040516173954.GB80376@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: freebsd-current@freebsd.org cc: Michael Hamburg Subject: Re: fsck in -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 16 May 2004 17:45:31 -0000 Dan Nelson wrote: > In the last episode (May 16), Scott Long said: > >>Dan Nelson wrote: >> >>>In the last episode (May 16), Scott Long said: >>> >>> >>>>Actually, bgfsck unconditionally inserts a delay into every 8th i/o >>>>operation to try to keep from saturating the disks. Unfortunately >>>>this isn't terribly sophisticated and it results in bgfsck taking >>>>an eternity whether the system is idle, loaded, or reniced. >>> >>>See http://dan.allantgroup.com/FreeBSD/fsck_ffs.diff for a patch >>>that removes the delay if it's at the minimum value, and more fairly >>>calculates disk wait time. This cuts bgfsck time from ~4 hours to >>>20 minutes on my 36gb /usr. >> >>Looks like a reasonable fix. Do you want it reviewed and committed? > > > Sure. I don't remember why I bumped up the max wait time to 2.5 sec, > though. That's probably too long. > Maybe you were seeing effects of the syncer daemon? It can easily generate 2+ seconds of i/o on a flush. Scott