Re: Can O_SYNC be implemented by using fsync?

From: Jeff V. Merkey (jmerkey@timpanogas.com)
Date: Mon May 15 2000 - 14:18:06 EST


Agree. If someone is always asking the system to repeatedly perform a
write-through for a file, the user should expect degraded performance.

Jeff

Pavel Machek wrote:
>
> Hi!
>
> > > this discusses item 5.1 in Alan's list of outstanding fixes before 2.4.
> > >
> > > I'm using fsync to write out all dirty pages/blocks of a file in
> > > generic_file_write to get O_SYNC behaviour. Patch is included below. It
> > > is the wrong way to do O_SYNC? I've checked this and it seems to do what
> > > would be expected and it caused no harm to me.
> >
> > It is just very very inefficient to do it this way, especially on file systems
> > that don't use page sized blocks. Fsync does a lot of work while
> > searching
>
> Well, maybe O_SYNC is so rare that slowdown might be acceptable.
>
> Pavel
> --
> I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
> Panos Katsaloulis describing me w.r.t. patents me at discuss@linmodems.org
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/

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



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:26 EST