From: Jens Axboe <axboe@suse.de>
To: Matthias Andree <matthias.andree@gmx.de>
Cc: "Edwards, Scott (GE Healthcare)" <J.Scott.Edwards@ge.com>,
linux-scsi@vger.kernel.org
Subject: Re: Write cache on SATA drives?
Date: Fri, 1 Jul 2005 10:33:10 +0200 [thread overview]
Message-ID: <20050701083308.GZ2243@suse.de> (raw)
In-Reply-To: <m3acl7ym7f.fsf@merlin.emma.line.org>
On Fri, Jul 01 2005, Matthias Andree wrote:
> Jens Axboe <axboe@suse.de> writes:
>
> > On Thu, Jun 30 2005, Edwards, Scott (GE Healthcare) wrote:
> >> Hello,
> >>
> >> Can anyone tell me if the write cache on SATA drives are handled such
> >> that journaling file systems work correctly? Back in the 2.6.5 -
> >> 2.6.7 time frame I had to disable the write cache to get ext3 to not
> >> trash things when the power was lost. With kernel 2.6.10 would I
> >> still need to disable the write cache?
> >
> > With 2.6.12.x it should work, if you use ext3 or reiser and the
> > appropriate mount options (-o barrier=1 for ext3, barrier=flush for
> > reiserfs). 2.6.11 and earlier does not work on SATA.
>
> I presume this means "libata" exclusively, no?
It means "SCSI without queueing" which I'm assuming is basically only
libata at this moment, at least if you count setups that have a non-zero
userbase :)
> Which is the oldest version where this works
>
> 1. for SCSI (perhaps by adaptor)?
2.6.12, with the above restriction. I hope to lift that for .13/14, with
Tejuns barrier updates.
> 2. for traditional IDE (such as VIA 82*, PIIX_*)?
In SUSE kernels, for many years. Since 2.6.7/8'ish in Linus' kernels.
> 3. for RAID?
Not really safe, only for fsync.
> 4. for XFS or JFS?
XFS and JFS need minor updates, similar to what ext3 and reiser got.
Should take someone familiar with the code no more than an hour to do,
nobody has done it yet though.
> <http://home.pages.de/~mandree/linux/kernel/safe-write-caches.html>
One important update, the 'oe' in my name is not an ascii safe variant
of the real name, it really is spelled that way :)
--
Jens Axboe
next prev parent reply other threads:[~2005-07-01 8:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-30 21:39 Write cache on SATA drives? Edwards, Scott (GE Healthcare)
2005-07-01 6:24 ` Jens Axboe
2005-07-01 8:17 ` Matthias Andree
2005-07-01 8:33 ` Jens Axboe [this message]
2005-07-01 8:47 ` Matthias Andree
2005-07-01 8:54 ` Jens Axboe
2005-07-01 23:33 ` Matthias Andree
2005-07-02 7:07 ` Jens Axboe
2005-07-03 17:03 ` Matthias Andree
2005-07-04 6:39 ` Jens Axboe
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=20050701083308.GZ2243@suse.de \
--to=axboe@suse.de \
--cc=J.Scott.Edwards@ge.com \
--cc=linux-scsi@vger.kernel.org \
--cc=matthias.andree@gmx.de \
/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.