All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miles Nordin <carton@Ivy.NET>
To: linux-mtd@lists.infradead.org
Subject: Re: mtdblock caching and syncing
Date: Thu, 23 Apr 2009 14:21:41 -0400	[thread overview]
Message-ID: <oqws9bs022.fsf@castrovalva.Ivy.NET> (raw)
In-Reply-To: <20090409160247.GI15952@nortel.com> (Doug Graham's message of "Thu, 9 Apr 2009 12:02:47 -0400")

[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]

>>>>> "dg" == Doug Graham <dgraham@nortel.com> writes:

    dg> I would assume that [hard drives] don't leave dirty data in
    dg> their cache for an unbounded period of time.

ZFS always, ext3 mounted with barrier=1 (or by default in SLES only)
and only when not using LVM2, and HFS+ on Mac OS X when using their
bullshit fcntl F_FULLSYNC API, all at least claim to issue SYNC CACHE
commands to the drives and wait for the drive to write to platter.
It's also possible for people who care to turn off the write cache in
their drives.  For drives connected to RAID controllers that have a
battery-backed write cache, I've hard of database-oriented sysadmins
who actually do this as a best-practice not a freak experiment---in
general, at least for SCSI drives, DBA's are likely to be aware of and
control their drives' write cache settings.  There is some FUD about
drives existing that ignore the SYNC CACHE command (but not SCSI
drives), but so far the people I've seen spreading this FUD refuse to
name the specific drives, so they are likely to be really old drives,
or even just made-up excuses from developers of buggy filesystems and
block layers.

Anyway, the point is, mtdblock is behind the curve here, yes.  and for
hard drive-backed filesystems the situation will probably get even
better soon.  And finally, devices which use FLASH tend to get their
cords yanked more often so IMHO it matters.

[-- Attachment #2: Type: application/pgp-signature, Size: 304 bytes --]

  parent reply	other threads:[~2009-04-23 18:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 14:15 mtdblock caching and syncing Doug Graham
2009-04-09 14:51 ` Josh Boyer
2009-04-09 16:02   ` Doug Graham
2009-04-09 17:16     ` Josh Boyer
2009-04-09 18:07     ` Jamie Lokier
2009-04-09 19:24       ` Doug Graham
2009-04-23 18:21     ` Miles Nordin [this message]
2009-04-24 15:35       ` Jamie Lokier

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=oqws9bs022.fsf@castrovalva.Ivy.NET \
    --to=carton@ivy.net \
    --cc=linux-mtd@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.