Re: [exim-dev] Old topic again: Option to avoid fsync()?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Michael Haardt
Ημερομηνία:  
Προς: exim-dev
Αντικείμενο: 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.

Thanks a lot for your work,

Michael