Re: fsck way too slow
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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck way too slow
On 5/12/06, Andrea Venturoli <[EMAIL PROTECTED]> cwaeth: "one big root partition." Don't do this. -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck way too slow
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck way too slow
Daniel Bye wrote: Yeah, I realise that. I'm afraid I don't know why fsck should take so long on your disk. Chuck suggested some things you might try, though. Yeah, sorry, my fault. I intended to answer on the ml, but instead I mailed him privately. It sounds to me like it might be failing hardware, but you need to try some diagnostics, and not take my word for it! I had run other tests before, as well as what Chuck suggested: my drive is not failing. Also, fsck in multiuser mode takes 1/50 of what it needs at boot. I've tried putting the thread back on the ml... bye & Thanks av. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck way too slow
Chuck Swiger wrote: OK, I agree that this doesn't sound like a hardware problem with the drive now that you've tested it, but it was at least worth looking at. Ok, thanks for pointing it out, anyway :) 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 bgfsk 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). bye & Thanks av. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck way too slow
On Fri, May 12, 2006 at 05:46:57PM +0200, Andrea Venturoli wrote: > Daniel Bye wrote: > > >So, as jerry said, it's a Bad Idea to have just one partition, for many > >reasons, this being among them. > > > Ok, I know that. Still this wasn't the point of my request. I've been > answered the first questions, but I'm still wondering on the second one... Yeah, I realise that. I'm afraid I don't know why fsck should take so long on your disk. Chuck suggested some things you might try, though. It sounds to me like it might be failing hardware, but you need to try some diagnostics, and not take my word for it! Dan -- Daniel Bye PGP Key: http://www.slightlystrange.org/pgpkey-dan.asc PGP Key fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgpjg0WlfkOGF.pgp Description: PGP signature
Re: fsck way too slow
Daniel Bye wrote: So, as jerry said, it's a Bad Idea to have just one partition, for many reasons, this being among them. Ok, I know that. Still this wasn't the point of my request. I've been answered the first questions, but I'm still wondering on the second one... bye & Thanks av. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck way too slow
Bill Moran wrote: First of all: I believe that fsck should run in background, but it doesn't. How can I tell why? From my desktop: mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local) Note that / does not have soft-updates, which I believe is the default. AFAIR, fsck can not do background mode unless soft-updates is enabled. That's likely your problem. I have turned them on: /dev/da0s1a on / (ufs, local, soft-updates) As other pointed out, however, / won't be checked in background. This is still ok, for me, given it would take <5 min, as it should and as it did in the past. bye & Thanks av. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck way too slow
On Fri, May 12, 2006 at 10:58:23AM -0400, Bill Moran wrote: > Andrea Venturoli <[EMAIL PROTECTED]> wrote: > > > Hello. > > I've got a i386/6.1 box with only one big root partition. > > The problem is that, whenever the machine is not properly shutdown, fsck > > on boot takes eons. > > > > First of all: I believe that fsck should run in background, but it > > doesn't. How can I tell why? > > >From my desktop: > mount > /dev/ad0s1a on / (ufs, local) > devfs on /dev (devfs, local) > /dev/ad0s1d on /tmp (ufs, local, soft-updates) > /dev/ad0s1f on /usr (ufs, local, soft-updates) > /dev/ad0s1e on /var (ufs, local, soft-updates) > > Note that / does not have soft-updates, which I believe is the default. > AFAIR, fsck can not do background mode unless soft-updates is enabled. > > That's likely your problem. fsck(8) suggests that any file system required during the boot process is not a valid candidate for background checking. Naturally, there is no file system more important to the boot process than / so it cannot be checked in the background. I'm not sure if softupdates has any bearing on background fscking, but IANAE, and all that. So, as jerry said, it's a Bad Idea to have just one partition, for many reasons, this being among them. Dan -- Daniel Bye PGP Key: http://www.slightlystrange.org/pgpkey-dan.asc PGP Key fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgp3HO9p43WsW.pgp Description: PGP signature
Re: fsck way too slow
Andrea Venturoli wrote: Then, back to the heart of the problem, why does it take so long? It's a 9GB SCSI disk and it should be quite fast, although a bit old; it's speed is for sure enough for day to day work. Back in the 5.x times fsck used to last definitely less than 5 minutes. After I upgraded to 6.1 (or maybe after 6.0) it started taking nearly an hour. It just sits there for eons, the disk barely working, and printing a line every minute or so. This may or may not be a problem with FreeBSD 6.x...have you installed a diagnostic tool like smartmon and run a disk check? If the drive is in the process of failing, you might experience slowdowns like you've described. Can you "dd if=/dev/da0 of=/dev/null bs=64k" [*] OK and at a reasonable speed? Hit Cntl-T every minute or so... -- -Chuck [*]: or whatever device your SCSI drive appears at, if not da0. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck way too slow
Andrea Venturoli <[EMAIL PROTECTED]> wrote: > Hello. > I've got a i386/6.1 box with only one big root partition. > The problem is that, whenever the machine is not properly shutdown, fsck > on boot takes eons. > > First of all: I believe that fsck should run in background, but it > doesn't. How can I tell why? >From my desktop: mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad0s1d on /tmp (ufs, local, soft-updates) /dev/ad0s1f on /usr (ufs, local, soft-updates) /dev/ad0s1e on /var (ufs, local, soft-updates) Note that / does not have soft-updates, which I believe is the default. AFAIR, fsck can not do background mode unless soft-updates is enabled. That's likely your problem. -- Bill Moran I tore these out of your symbol, and they turned into paper -- but I want to put them back ... River Tam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck way too slow
> > Hello. > I've got a i386/6.1 box with only one big root partition. > The problem is that, whenever the machine is not properly shutdown, fsck > on boot takes eons. That is one of the reasons for not making the whole system one big root partition. It will not finish booting until root is cleaned up. The other partitions may be done in background. > > First of all: I believe that fsck should run in background, but it > doesn't. How can I tell why? > > Then, back to the heart of the problem, why does it take so long? It's a > 9GB SCSI disk and it should be quite fast, although a bit old; it's > speed is for sure enough for day to day work. > Back in the 5.x times fsck used to last definitely less than 5 minutes. > After I upgraded to 6.1 (or maybe after 6.0) it started taking nearly an > hour. It just sits there for eons, the disk barely working, and printing > a line every minute or so. I don't know of a reason 6.1 should take longer to fsck than 5.x. jerry > This regularity makes me think that it might be waiting for something > and then just giving up after timeout. *Like* it is trying to syslog, > although that deamon has not started yet. This is obviously just an > hypotesis, but I thought it might help explain the problem. > Any hint? > > bye & Thanks > av. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
fsck way too slow
Hello. I've got a i386/6.1 box with only one big root partition. The problem is that, whenever the machine is not properly shutdown, fsck on boot takes eons. First of all: I believe that fsck should run in background, but it doesn't. How can I tell why? Then, back to the heart of the problem, why does it take so long? It's a 9GB SCSI disk and it should be quite fast, although a bit old; it's speed is for sure enough for day to day work. Back in the 5.x times fsck used to last definitely less than 5 minutes. After I upgraded to 6.1 (or maybe after 6.0) it started taking nearly an hour. It just sits there for eons, the disk barely working, and printing a line every minute or so. This regularity makes me think that it might be waiting for something and then just giving up after timeout. *Like* it is trying to syslog, although that deamon has not started yet. This is obviously just an hypotesis, but I thought it might help explain the problem. Any hint? bye & Thanks av. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"