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

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Matt Bernstein
Fecha:  
A: Michael Haardt
Cc: exim-dev
Asunto: Re: [exim-dev] Old topic again: Option to avoid fsync()?
On Jan 9 Michael Haardt wrote:

> Do you vote for or against having an option to disable fsync()?


Against; I don't want Exim authors blamed for irresponsible behaviour.

Another option available to you is to LD_PRELOAD a no-op for fsync(), eg
<http://ftp.die.net/pub/qmail-tools/libnosync.c>.

But please try the external journal trick first, and set a commit interval
as large as you like--I use a minute or two. Your I/O will scale since
then main volume is largely only reading and the journal volume will only
write if you have enough RAM.