[linux-audio-dev] Re: File writes with O_SYNC slow

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] Re: File writes with O_SYNC slow
From: Stephen C. Tweedie (sct_AT_redhat.com)
Date: Wed Apr 19 2000 - 19:15:11 EEST


Hi,

On Wed, Apr 19, 2000 at 11:55:04AM -0400, Karl JH Millar wrote:
>
> I've noticed that file writes with O_SYNC are very much slower than they should
> be.

How fast do you think they should be?

If you are doing small appends, then O_SYNC is _guaranteed_ to be dead
slow. Ever write involves updating the data, updating the mapping tree,
and flushing the whole lot synchronously to disk. That's two seeks per
write.

--Stephen


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Apr 19 2000 - 19:45:56 EEST