Re: [PATCH] ide write barrier support

From: Jens Axboe
Date: Tue Oct 21 2003 - 00:41:42 EST


On Tue, Oct 21 2003, Daniel Phillips wrote:
> On Monday 20 October 2003 21:56, Jens Axboe wrote:
> > There IS a correctness issue, in
> > that drives ship with write back caching enabled. The fs assumes that
> > once wait_on_buffer() returns, the data is on disk. Which is false, can
> > remain false for quite a long number of seconds.
>
> Maybe what you're saying is, there are only two ways to deal with IDE drives
> with non-disablable writeback cache:
>
> 1) flush the cache on every write
> 2) Implement write barriers, add them to all the journalling filesystems,
> and flush only on the write barrier
>
> and (1) is just too slow. Correct?

Yes, that is exactly what I'm saying. It's not just that, though.
Completely disabling write back caching on IDE drives totally kills
performance typically, they are just not meant to be driven this way.

--
Jens Axboe

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