Re: [PATCH] ide write barrier support

From: Jens Axboe
Date: Fri Oct 17 2003 - 01:47:40 EST


On Thu, Oct 16 2003, Mudama, Eric wrote:
>
> On Tue, Oct 14 2003, Greg Stark wrote:
> > Jens Axboe <axboe@xxxxxxx> writes:
> > > There's also the case of files opened with O_SYNC. Would inserting a
> > > write barrier after every write to such a file destroy performance?
> >
> > If it's mainly sequential io, then no it won't destroy performance. It
> > will be lower than without the cache flush of course.
>
> If you flush a cache after every command in a sequential write, yes, you'll
> destroy performance. How much you destroy it is a function of command size
> relative to track size, and the RPM of the drive.

Yes you are right, my logic was a bit backwards. But you don't have to
issue a flush after every write, thankfully. But lets still not forget
that performance means nothing if integrity isn't guarenteed.

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