From owner-freebsd-bugs@FreeBSD.ORG Sat May 10 07:03:26 2008 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2721106566C; Sat, 10 May 2008 07:03:26 +0000 (UTC) (envelope-from svein-listmail@d80.iso100.no) Received: from d80.iso100.no (d80.iso100.no [81.175.61.195]) by mx1.freebsd.org (Postfix) with ESMTP id 5DB718FC1D; Sat, 10 May 2008 07:03:26 +0000 (UTC) (envelope-from svein-listmail@d80.iso100.no) Received: from localhost (unknown [127.0.0.1]) by d80.iso100.no (Familien Skogens mail) with ESMTP id D8F7D2284B; Sat, 10 May 2008 08:47:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at d80.iso100.no Received: from d80.iso100.no ([127.0.0.1]) by localhost (d80.iso100.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qzr+XapiE8Kf; Sat, 10 May 2008 08:46:53 +0200 (CEST) Received: from [192.168.4.3] (unknown [192.168.4.3]) (Authenticated sender: svein) by d80.iso100.no (Familien Skogens mail) with ESMTPSA id 37E8422844; Sat, 10 May 2008 08:46:52 +0200 (CEST) Message-ID: <482544DB.2000401@d80.iso100.no> Date: Sat, 10 May 2008 08:46:51 +0200 From: Svein Skogen User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-bugs@FreeBSD.org, freebsd-current Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Question regarding mmap on ZFS, or possibly Dovecot X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2008 07:03:26 -0000 I still get massive file corruption when allowing Dovecot to run win mmap enabled on ZFS/FreeBSD RELENG_7 (as of one week ago), and I have seen symptoms of corruption with Samba and mmap on ZFS (although I cannot say with certainty that those samba files were corrupted in the FreeBSD end, they may have been mangled by my less-than-trustworthy windows). For dovecot+mmap+zfs I get a googlefull of results, same with samba+mmap+zfs. The question remains the same, however. Is this a problem with samba/dovecot using mmap incorrectly, a problem with ZFS as such, or a problem with the FreeBSD implementation of ZFS? I'm not asking this to have someone to point fingers at, but because I want to do some risk-reducing activities. If the problem is in the applications, disabling mmap in those applications will be a workaround. If the problem is with ZFS itself, or with FreeBSD, things start to get interesting (it would need some global switch to turn mmap off, and I'm not sure such a thing is practical/possible). The system running my ZFS is an Athlon64 running amd64 kernel, 4gb ram, and a raidZ of 3 500gb samsung disks (on an nForce430 chipset) //Svein