From owner-freebsd-current@FreeBSD.ORG Sat May 10 19:23:51 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 03B6D1065676 for ; Sat, 10 May 2008 19:23:51 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id A58CF8FC16 for ; Sat, 10 May 2008 19:23:50 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so992348ywe.13 for ; Sat, 10 May 2008 12:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=QNtR1qF+DGDec9sjCIIkh87Pq60BDmUc0E+zBC7ygNg=; b=dwC6LsEA+qP3tNESahbCKSCapj0mm8+bGeWoQabIiKI2e8+Qp4s4NZhULmVh7sUHphg4bDolVM999njILlz772gqh5a8uhAdEQgqKCL5hP0Xr8ZW7eQ34tKRbsv0EMtCpcBeh8WNWoy5LJIvDCLXxxjR0KisKcXBmhHPef3WpUE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=ivOFLnGC76jmX4Xaj1LIoBmg+N9Y8Lw0cpoONfSU53RmEJzt9jcl6/zTkwYSj3QOhfbGkC9kXAM1aI6Om2Yn39WUzPPfFzgHHcVQruTjXVML3cwDtDO6P60YYoyBBEUsG4NDUepmujfk46ebB+SC7xLC1OyIHB29K09KD10OA/0= Received: by 10.150.79.42 with SMTP id c42mr6372557ybb.162.1210447425908; Sat, 10 May 2008 12:23:45 -0700 (PDT) Received: by 10.150.53.11 with HTTP; Sat, 10 May 2008 12:23:45 -0700 (PDT) Message-ID: <5f67a8c40805101223y6fddc011kb1ea615080d6cd12@mail.gmail.com> Date: Sat, 10 May 2008 15:23:45 -0400 From: "Zaphod Beeblebrox" To: "Svein Skogen" In-Reply-To: <482544DB.2000401@d80.iso100.no> MIME-Version: 1.0 References: <482544DB.2000401@d80.iso100.no> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-bugs@freebsd.org, freebsd-current Subject: Re: Question regarding mmap on ZFS, or possibly Dovecot 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: Sat, 10 May 2008 19:23:51 -0000 On Sat, May 10, 2008 at 2:46 AM, Svein Skogen wrote: > 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) While I remain suspicious of ZFS on FreeBSD, I use it for /usr and /var on my laptop and as a large filestore on my network (via both NFS and samba). The only curious thing on my laptop is that wine crashes (even running winecfg crashes) ... seemingly while mapping ntkrnl.dll (or whatever it's called). The big filestore seems reliable at holding media of various sorts. Both Samba and NFS are used to access it. But I don't bit torrent directly to a ZFS filesystem and I don't use dovecot.