All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: Miles Nordin <carton@Ivy.NET>
Cc: linux-mtd@lists.infradead.org
Subject: Re: mtdblock caching and syncing
Date: Fri, 24 Apr 2009 16:35:35 +0100	[thread overview]
Message-ID: <20090424153535.GH9307@shareable.org> (raw)
In-Reply-To: <oqws9bs022.fsf@castrovalva.Ivy.NET>

Miles Nordin wrote:
> >>>>> "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.

Yes, that is all true.

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

There's a lot of discussion about fsync and barriers recently, so yes.
Same for SSDs.

> And finally, devices which use FLASH tend to get their cords yanked
> more often so IMHO it matters.

That is the single most important reason!

-- Jamie

      reply	other threads:[~2009-04-24 15:35 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
2009-04-24 15:35       ` Jamie Lokier [this message]

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=20090424153535.GH9307@shareable.org \
    --to=jamie@shareable.org \
    --cc=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.