From owner-freebsd-current@FreeBSD.ORG Sun Feb 24 14:25:04 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B889616A402 for ; Sun, 24 Feb 2008 14:25:04 +0000 (UTC) (envelope-from bbiskebo@Princeton.EDU) Received: from Princeton.EDU (postoffice03.Princeton.EDU [128.112.131.174]) by mx1.freebsd.org (Postfix) with ESMTP id 6954113C4F0 for ; Sun, 24 Feb 2008 14:25:04 +0000 (UTC) (envelope-from bbiskebo@Princeton.EDU) Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148]) by Princeton.EDU (8.13.8/8.13.8) with ESMTP id m1OEOqJm025094; Sun, 24 Feb 2008 09:24:58 -0500 (EST) Received: from [140.180.177.201] (formula.Princeton.EDU [140.180.177.201]) (authenticated bits=0) by smtpserver2.Princeton.EDU (8.12.9/8.12.9) with ESMTP id m1OEOkrU024851 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Sun, 24 Feb 2008 09:24:46 -0500 (EST) Message-ID: <47C17E2C.5040606@princeton.edu> Date: Sun, 24 Feb 2008 09:24:44 -0500 From: Brian Biskeborn User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Peter Schuller References: <20080215231507.EAB7D641@mx2.synetsystems.com> <200802241252.52176.peter.schuller@infidyne.com> In-Reply-To: <200802241252.52176.peter.schuller@infidyne.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Richard Todd Subject: Re: ZFS: data sometimes not getting correctly flushed to disk (possible mmap/write issue)? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2008 14:25:04 -0000 This has been happening to me for a week or so (same setup - Dovecot on ZFS). I'll disable mmap and see whether it persists. Brian Peter Schuller wrote: >> 3) ktracing gen2.py shows that the py-mutagen library seems to do both >> write()s and read/write mmap()s to the file to update the file. > > FWIW, ever since a dovecot installation of mine was moved onto ZFS one gets > sporadic 'internel errors' from dovecot. Dovecot logs that index files are > corrupt, and marked broken. Recovery involves re-selecting the IMAP mailbox. > > In response to your post, I recently turned OFF use of mmap in dovecot > (mmap_disable = yes), and the problem seems to have gone away immediately. > > If it should show up again in spite of mmap being disabled I will post a > follow-up, but it's been long enough that I believe the problem to be gone. >