Szerző: Michael Haardt Dátum: Címzett: exim-dev Tárgy: Re: [exim-dev] Old topic again: Option to avoid fsync()?
> OK, I've tried to make everyone happy. I have added a compile-time > option called ENABLE_DISABLE_FSYNC, and put a lot of warnings about it
> in EDITME. In particular, I've said it should never be used when
> compiling binaries for distribution.
>
> If ENABLE_DISABLE_FSYNC is set, a runtime option called disable_fsync is
> compiled. If the compile time option is not set, an attempt to use the
> runtime option gets "unknown option".
Perfectly! I just tried it and it works great, reducing I/O from 400
down to about 20 operations per second. It's back at 400 now, because
that's how things are meant to work, but it is good to know there is an
emergency exit in reach.