Re: [PATCH] queue barrier support

From: Chris Mason (mason@suse.com)
Date: Fri Feb 15 2002 - 12:17:49 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Feb 15 2002 - 21:01:08 EST