Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 1999 11:57:31 -0800 (PST)
From:      Doug Ambrisko <ambrisko@whistle.com>
To:        current@FreeBSD.ORG
Subject:   Re: ATA driver as the default
Message-ID:  <199912071957.LAA31946@whistle.com>
In-Reply-To: <384D53E8.27ABF47D@dead-end.net> from "D. Rock" at "Dec 7, 1999 07:37:28 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
D. Rock writes:
| I just re-enabled the ATA driver again after reading the change log
| of better error handling and automatic falldown DMA->PIO under specific
| circumstances.
| But a few days later, while making world (with the ata driver), the
| system
| crashed quite heavily. The file system was totally screwed up afterwards
| (I found my /usr/local after some heavy searching: It magically
| moved to /usr/obj/usr/src/tmp/usr/share/zoneinfo (!) and got tons of
| fsck
| messages). The file system had softupdates enabled. I don't know the
| last kernel messages before the crash (was running X at that time).

You might want to look at ata-disk.c and the timeout value around line
438:

        /* start timeout for this transfer */
        if (panicstr)
            request->timeout_handle.callout = NULL;
        else
            request->timeout_handle =
                timeout((timeout_t*)ad_timeout, request, 5*hz);

Originally it was 3s and recently increased to 5s.  Personally
I switched it to 30s after it trashed my filesystem when it was 3s.
The issue was that 3s, is that it is to short to wait for my laptop's 
drive to spin back up.  Sometimes I would get a corrupted read sometimes on
a write it would trash things.  I noticed in the old wd driver that
it tried 10s first then a couple 3s timeouts.  After making this
change my system has been rock solid when the drive spins down.
Note I haven't tried to tune this value since trashing a 14G filesystem
is pain full.

Doug A.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912071957.LAA31946>