Date: Fri, 09 Jun 2006 16:39:52 +0200 From: Andrea Venturoli <ml.diespammer@netfence.it> To: Chuck Swiger <cswiger@mac.com>, freebsd-questions@freebsd.org Subject: Re: fsck way too slow Message-ID: <44898838.3030108@netfence.it> In-Reply-To: <4464B97B.9030906@mac.com> References: <44649FA9.6080700@netfence.it> <4464A491.5050000@mac.com> <4464B160.5040605@netfence.it> <4464B42C.1040203@mac.com> <4464B757.7090407@netfence.it> <4464B97B.9030906@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Swiger wrote: > 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. So, I think I came to an end investigating this: _ putting 'background_fsck="NO"' in /etc/rc.conf won't help (fsck would anyway run foreground in any case); _ tuning the filesystem to turn off softupdates solved it. I guess we could mark this as a bug; do you think I should send-pr about it? bye & Thanks av.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44898838.3030108>