From: Ric Wheeler <ric@emc.com>
To: Mark Hahn <hahn@physics.mcmaster.ca>
Cc: David.Ronis@McGill.CA, linux-ide@vger.kernel.org
Subject: Re: Problem with disk
Date: Sat, 06 May 2006 14:17:07 -0400 [thread overview]
Message-ID: <445CE823.2040203@emc.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0605061304560.5626-100000@coffee.psychology.mcmaster.ca>
Mark Hahn wrote:
>>The write cache in modern drives is multiple megabytes - 8 or 16MB is
>>not uncommon. The chances that you have data that is lost on a power
>>failure in the write cache is actually quite high...
>>
>>
>
>but we're not talking about power failures in the middle of peak activity.
>afaikt, drives also never dedicate their whole cache to writeback - they
>keep plenty available for reads, as well. it would also be rather surprising
>if the firmware was completely oblivious about limiting the age of
>writebacks; after all always delaying writes until you run out of cache
>capacity is _not_ a winning strategy (even ignoring safety issues.)
>
>
If you have drives/hardware to test on, you can easily verify (which we
do on a regular basis) that running with barriers over power fail
testing gets you a solid recovery. Running with write cache on and no
barriers gets you file system corruption. As I said before, the data you
just wrote (or the file system wrote for you) most recently is the same
data that you stand to lose on a powerloss.
>during a normal shutdown, can you think of some reason the drive would have
>LOTS of outstanding writes? that's the real point. depending on kernel
>version, linux should be doing a cache-flush command and standby, then
>eventually calling bios poweroff. it's very possible that this is going
>wrong (rumors of disks that claim to implement, but ignore cache-flush,
>or perhaps ones that stupidly don't flush on standby, or even bios poweroff
>that happens so fast that the disks isn't done flushing...) but turning
>off all writeback is overkill (especially when there's some other obvious
>sign of distress...)
>
>
>
We don't test every make of drive, but the modern drives we do test do
honor the cache flush commands. It is important to note that drive
firmware is like any other bit of code - it can have bugs so this
support does need to be reverified on each drive (and version of
firmware) before you can trust high value data ;-)
If there is a hole in the sequence, dropping to standby could be the
source of issues...
ric
next prev parent reply other threads:[~2006-05-06 18:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-03 20:01 Problem with disk David Ronis
2006-05-03 20:08 ` Ric Wheeler
2006-05-05 23:49 ` Mark Hahn
2006-05-06 0:51 ` Ric Wheeler
2006-05-06 17:11 ` Mark Hahn
2006-05-06 18:17 ` Ric Wheeler [this message]
2006-05-06 18:34 ` Mark Hahn
2006-05-06 22:56 ` Tejun Heo
2006-05-07 13:21 ` Ric Wheeler
2006-05-07 13:41 ` Tejun Heo
2006-05-08 14:33 ` Ric Wheeler
2006-05-10 22:21 ` Tejun Heo
2006-05-13 19:31 ` Ric Wheeler
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=445CE823.2040203@emc.com \
--to=ric@emc.com \
--cc=David.Ronis@McGill.CA \
--cc=hahn@physics.mcmaster.ca \
--cc=linux-ide@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).