From: Matthias Andree <matthias.andree@gmx.de>
To: linux-kernel@vger.kernel.org
Cc: Ville Herva <vherva@niksula.cs.hut.fi>,
Andre Hedrick <andre@linux-ide.org>
Subject: Re: ide write cache issue? [Re: Something corrupts raid5 disks slightly during reboot]
Date: Sun, 2 Nov 2003 21:57:58 +0100 [thread overview]
Message-ID: <20031102205758.GA23842@merlin.emma.line.org> (raw)
In-Reply-To: <20031102082827.GO4868@niksula.cs.hut.fi>
On Sun, 02 Nov 2003, Ville Herva wrote:
> As an^Wthe IDE expert, can you clarify a few points:
>
> - How long can the unwritten data linger in the drive cache if the drive
> is otherwise idle? (Without an explicit flush and with write caching
> enabled.)
Several seconds. This is usually detailed in the OEM integrator manual,
at least it used to be for several IBM and Fujitsu drives when I looked
two years ago. Drives usually start flushing cached data before they go
idle, and some drives guarantee maximum times before data hits the disk.
IIRC, Fujitsu MAH drives (SCSI though, not ATA) for instance guarantee
not to cache data for longer than 3 s, even if that means interrupting
reordering writes and hits write performance adversely (because it might
involve seeks). I seem to recall some IBM ATA drive claimed 15 s, but
don't quote me on that, I don't even recall if that was 2.5" or 3.5".
I don't recall the exact wording, so it may mean that the drive will not
VOLUNTARILY DELAY the write for more than 3 s. It's quite hard to write
4,096 scattered blocks on individual cylinders in 3 s even on 10,025/min
drives and requires knowing the block offset from the current rotational
angle of the platter... I wonder if drive firmware makes such scheduling
efforts.
> I had unmounted the fs an raidstopped the md minutes before the boot.
Ugly if it still corrupts. :-(
> - Can this corruption happen on warmboot or only on poweroff?
On ATA drives, the cache contents must persist across soft or hard reset
(warmboot).
> - What kind of corruption can one see the if boot takes place "too fast"
> and drive hasn't got enough time to flush its cache?
None with intact drives and bug-free firmware (I doubt such a thing
exists). Anyways, on powering down or with firmware bugs, anything is
possible.
--
Matthias Andree
Encrypt your mail: my GnuPG key ID is 0x052E7D95
next prev parent reply other threads:[~2003-11-02 20:58 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-31 19:08 Something corrupts raid5 disks slightly during reboot Ville Herva
2003-11-01 1:41 ` Jeffrey E. Hundstad
2003-11-01 1:57 ` Mike Fedyk
2003-11-01 8:33 ` Ville Herva
2003-11-01 8:27 ` ide write cache issue? [Re: Something corrupts raid5 disks slightly during reboot] Ville Herva
2003-11-01 15:56 ` Willy Tarreau
2003-11-01 18:25 ` Ville Herva
2003-11-01 19:01 ` Willy Tarreau
2003-11-01 21:02 ` Ville Herva
2003-11-02 6:05 ` Andre Hedrick
2003-11-02 8:28 ` Ville Herva
2003-11-02 20:57 ` Matthias Andree [this message]
2003-11-03 5:34 ` Andre Hedrick
2003-11-03 6:38 ` Ville Herva
2004-01-02 19:42 ` Something corrupts raid5 disks slightly during reboot Ville Herva
2004-01-02 20:02 ` Ville Herva
2004-01-14 14:46 ` Ville Herva
2004-01-14 22:22 ` Willy Tarreau
2004-01-14 22:46 ` Ville Herva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031102205758.GA23842@merlin.emma.line.org \
--to=matthias.andree@gmx.de \
--cc=andre@linux-ide.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vherva@niksula.cs.hut.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®