LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Eric D. Mudama" <edmudama@mail.bounceswoosh.org>
To: Tom Vier <tmv@comcast.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux Kernel 2.6.6 IDE shutdown problems.
Date: Mon, 24 May 2004 11:16:56 -0600	[thread overview]
Message-ID: <20040524171656.GA19026@bounceswoosh.org> (raw)
In-Reply-To: <20040524024136.GB2502@zero>

On Sun, May 23 at 22:41, Tom Vier wrote:
>On Mon, May 17, 2004 at 06:25:51PM -0400, Bill Davidsen wrote:
>> I would think that if the drive didn't properly flush cache on shutdown 
>> that it might cause corruption. Feel free to tell me no drive would 
>> bahave like that ;-)
>
>why not add a one or two second delay before? i doubt any drive holds its
>writeback that long.

That is an arbitrary delay that isn't guaranteed to work in all
workloads.

FLUSH CACHE is the way to do this, complain to vendors that don't
support flush cache and get them to fix their drives.  (Like how Bart
spoke to me and we both 1) worked out a solution for current drives
and 2) fixed the root case in all future firmwares)


Picture a nice fast drive doing 100 writes/second to the media... if
you give it over 200 writes at a time, it'll occupy your 2 seconds.
Newer drives with 8MB or larger buffers are certainly capable of
caching a lot more than 200 writes...

Drives are getting smarter so they can better work around these sorts
of cases, but FLUSH CACHE (EXT) is the only way that should be
guaranteed to work.

--eric


-- 
Eric D. Mudama
edmudama@mail.bounceswoosh.org


  parent reply	other threads:[~2004-05-24 17:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-15 12:20 Justin Piszcz
2004-05-15 13:06 ` Bartlomiej Zolnierkiewicz
2004-05-17 22:25   ` Bill Davidsen
2004-05-24  2:41     ` Tom Vier
2004-05-24  3:09       ` Daniel Pittman
2004-05-24 17:16       ` Eric D. Mudama [this message]
2004-05-25  9:05         ` Giuliano Pochini
2004-05-25 15:03           ` Bartlomiej Zolnierkiewicz
2004-05-26 10:21             ` Ian Stirling
2004-05-25 17:02           ` Eric D. Mudama
  -- strict thread matches above, loose matches on Subject: below --
2004-05-15 14:59 Justin Piszcz
2004-05-15 12:02 Justin Piszcz

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=20040524171656.GA19026@bounceswoosh.org \
    --to=edmudama@mail.bounceswoosh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tmv@comcast.net \
    --subject='Re: Linux Kernel 2.6.6 IDE shutdown problems.' \
    /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

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).