[Dovecot] How to get rid of locks

Mark E. Mallett mem at mv.mv.com
Sat Apr 7 22:53:50 EEST 2007

On Sat, Apr 07, 2007 at 10:30:25PM +0300, Timo Sirainen wrote:
> I just figured out that O_APPEND is pretty great. If the operating  
> system updates seek position after writing to a file opened with  
> O_APPEND, writes to Dovecot's transaction log file can be made  
> lockless. I see that this works with Linux and Solaris, but not with  
> OS X. Could you BSD people try if it works there? http://dovecot.org/ 
> tmp/append.c and see if it says "offset = 0" (bad) or non-zero (yay).  

FreeBSD 5.2:     5,10,15 etc, so yay
ancient BSD/OS:  ditto
[my FreeBSD 6.2 system is unavailable at the moment, but I can't imagine
that they broke it there]


More information about the dovecot mailing list