From owner-freebsd-stable Sat May 25 0:41: 3 2002 Delivered-To: freebsd-stable@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 596BD37B42F for ; Sat, 25 May 2002 00:40:41 -0700 (PDT) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.3/8.12.3) with ESMTP id g4P7eeZF061753; Sat, 25 May 2002 00:40:41 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.3/8.12.3/Submit) id g4P7ee6P061752; Sat, 25 May 2002 00:40:40 -0700 (PDT) Date: Sat, 25 May 2002 00:40:40 -0700 (PDT) From: Matthew Dillon Message-Id: <200205250740.g4P7ee6P061752@apollo.backplane.com> To: Eugene Grosbein Cc: stable@FreeBSD.ORG Subject: Re: NFS problem with 4.6-PRERELEASE: SIGBUG in Apache References: <3CEE5094.EFF31B42@grosbein.pp.ru> <200205242137.g4OLbFmi058923@apollo.backplane.com> <20020525102224.A43047@svzserv.kemerovo.su> <200205250250.g4P2oSdA060174@apollo.backplane.com> <3CEF1E41.841937F4@svzserv.kemerovo.su> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :> mv index.html.new index.html : :Well, I can try this but I'd like to thing about general approach. :Perhaps, mmap should fail for files residing on NFS? :For example, Apache will then switch to another method of reading. : :Eugene You might be able to tell Apache not to use mmap(), but all it will do is stop apache from seg-faulting. It still won't prevent Apache from serving up bad file content if it happens to catch the file right in the middle of someone updating it. mmap() over NFS works just fine, you simply have to be aware of the issues related to truncating or deleting the file out from under a client which is trying to mmap() it. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message