Re: True fsync() in Linux (on IDE)

From: Jens Axboe
Date: Thu Mar 18 2004 - 01:49:13 EST


On Wed, Mar 17 2004, Peter Zaitsev wrote:
> Hello,
>
> I'm wondering is there any way in Linux to do proper fsync(), which
> makes sure data is written to the disk.
>
> Currently on IDE devices one can see, fsync() only flushes data to the
> drive cache which is not enough for ACID guaranties database server must
> give.
>
> There is solution just to disable drive write cache, but it seems to
> slowdown performance way to much.

Chris and I have working real fsync() with the barrier patches. I'll
clean it up and post a patch for vanilla 2.6.5-rc today.

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