From: Chris Mason <mason@suse.com>
To: James Bottomley <James.Bottomley@steeleye.com>
Cc: Jens Axboe <axboe@suse.de>,
linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] queue barrier support
Date: Fri, 15 Feb 2002 12:17:49 -0500 [thread overview]
Message-ID: <4044420000.1013793468@tiny> (raw)
In-Reply-To: <200202151651.g1FGpjs02083@localhost.localdomain>
In-Reply-To: <200202151651.g1FGpjs02083@localhost.localdomain>
On Friday, February 15, 2002 11:51:45 AM -0500 James Bottomley <James.Bottomley@steeleye.com> wrote:
> mason@suse.com said:
>> While I've got linux-scsi cc'd, I'll reask a question from yesterday.
>> Do the targets with write back caches usually ignore the order tag,
>> doing the write in the most efficient way possible instead?
>
> I'll try to answer, although I'm not quite sure of the basis of the question.
>
> No ordinary SCSI drive that's not on a battery backed circuit should *ever*
> use writeback caching. They should all come by default as write through. In
> this case, the tag is acknowleged as completed only when the write has made it
> to the medium.
Right, friends don't let friends use non-battery back write back caches ;-)
>
> If you alter the drive parameter page to turn on write back caching, it's
> caveat emptor. Since you're now telling the drive that you consider hitting
> the cache to be equivalent to hitting the medium (because you know better
> about power failures and the like) it is undefined by the standards how the
> drives write from the cache to the medium---and you shouldn't care about this
> if you have arranged your system to do write back caching. They will
> acknowlege the tag as completed as soon as it hits the cache, and the ordered
> tag will be order it commits to the cache.
Ok, this is what I was expecting. The performance improvement from
using the ordered tags on single drives doesn't seem to be very big, and
given the problems with failed requests, I'm thinking about dropping the
scsi parts of the 2.4 barrier patch, and just worrying about making ide
drives flush things correctly. The hard stuff on error recovery can
be tackled in 2.5 and (maybe) ported back later.
But, if high end controllers with write back caching see improvements
because they can combine the log writes better with the patch, it might
be worth keeping, but modified in reiserfs so it flushes IDE caches
by default, but only sends ordered tags when the admin mounts
with -o barrier_ordered or something.
thanks for the info
-chris
next prev parent reply other threads:[~2002-02-15 17:18 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-13 18:26 [PATCH] queue barrier support James Bottomley
2002-02-15 9:02 ` Jens Axboe
2002-02-15 15:15 ` James Bottomley
2002-02-15 16:28 ` Chris Mason
2002-02-15 16:51 ` James Bottomley
2002-02-15 17:17 ` Chris Mason [this message]
2002-02-15 17:48 ` James Bottomley
2002-02-15 22:30 ` Matthias Andree
2002-02-15 17:09 ` James Bottomley
2002-02-15 16:43 ` Mike Anderson
2002-02-15 13:41 ` Chris Mason
2002-02-16 10:20 ` Daniel Phillips
2002-02-16 15:02 ` James Bottomley
2002-02-25 20:55 ` 929-Emulex, ABTS Command Anamoly! Cindy Sweet
2002-02-25 21:02 ` arjan
-- strict thread matches above, loose matches on Subject: below --
2002-02-13 12:51 [PATCH] queue barrier support Jens Axboe
2002-02-13 13:09 ` Martin Dalecki
2002-02-13 13:13 ` Jens Axboe
2002-02-13 14:36 ` Martin Dalecki
2002-02-13 14:41 ` Jens Axboe
2002-02-13 14:51 ` Daniel Phillips
2002-02-13 15:18 ` Jens Axboe
2002-02-13 17:47 ` Andreas Dilger
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=4044420000.1013793468@tiny \
--to=mason@suse.com \
--cc=James.Bottomley@steeleye.com \
--cc=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@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