From owner-freebsd-questions@FreeBSD.ORG Fri May 12 16:36:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4507116AA70 for ; Fri, 12 May 2006 16:36:16 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 872BF43D6E for ; Fri, 12 May 2006 16:36:15 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 08E695E28; Fri, 12 May 2006 12:36:15 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bn6F+Vw8OgLy; Fri, 12 May 2006 12:36:14 -0400 (EDT) Received: from [192.168.1.251] (pool-68-160-235-217.ny325.east.verizon.net [68.160.235.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 081A25C60; Fri, 12 May 2006 12:36:14 -0400 (EDT) Message-ID: <4464B97B.9030906@mac.com> Date: Fri, 12 May 2006 12:36:11 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Andrea Venturoli References: <44649FA9.6080700@netfence.it> <4464A491.5050000@mac.com> <4464B160.5040605@netfence.it> <4464B42C.1040203@mac.com> <4464B757.7090407@netfence.it> In-Reply-To: <4464B757.7090407@netfence.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: fsck way too slow X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 16:36:26 -0000 Andrea Venturoli wrote: >>> Just to clarify: running "fsck /" (read-only) in multiuser mode >>> takes less than a minute. fsck at boot takes approx. 50 times that >>> long! >> >> ...and yes, that difference is not reasonable. Are you using bgfsck >> or not...? > > Hm, what do you mean? > I'd gladly let my system fsck in background after boot, but it won't > do that on a root partition, as mentioned somewhere else on this thread. > However, apart from that, I've set everything up according to this > wish of mine (i.e. I enabled softupdates and I did not put > background_fsck="NO" in my /etc/rc.conf). Try turning off background fsck and see whether it does better, the next time the system comes back up after an unclean shutdown. I think bgfsck has some kind of built-in throttling to avoid doing too much I/O, which may not be working quite right in this case, causing it to simply hang out mostly idle rather than finishing the filesystem check. If you have to wait 5-minutes up front rather than sitting with the thing crawling for an hour, maybe that's a better tradeoff...? Either way, it would be interesting to know whether automatic fsck'ing in the foreground procedes at a reasonable speed or not. -- -Chuck