Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EE6879FA2BD; Mon, 1 Oct 2007 15:37:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 35406-04-7; Mon, 1 Oct 2007 15:37:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from outmail129167.authsmtp.com (outmail129167.authsmtp.com [62.13.129.167]) by postgresql.org (Postfix) with ESMTP id 0B1199FA2CC; Mon, 1 Oct 2007 15:37:01 -0300 (ADT) Received: from outmail128179.authsmtp.co.uk (outmail128179.authsmtp.co.uk [62.13.128.179]) by punt3.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id l91IaqRD064916; Mon, 1 Oct 2007 19:36:52 +0100 (BST) Received: from [192.168.0.3] (85-211-149-22.dyn.gotadsl.co.uk [85.211.149.22]) (authenticated bits=0) by mail.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id l91IapVV028493; Mon, 1 Oct 2007 19:36:52 +0100 (BST) Subject: Re: PG on NFS may be just a bad idea From: Simon Riggs To: Josh Berkus Cc: Tom Lane , pgsql-hackers@postgreSQL.org, pgsql-novice@postgreSQL.org, Mija Lee In-Reply-To: <47012AC5.9040808@agliodbs.com> References: <25517.1191038302@sss.pgh.pa.us> <47012AC5.9040808@agliodbs.com> Content-Type: text/plain Date: Mon, 01 Oct 2007 19:36:54 +0100 Message-Id: <1191263814.4260.57.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 473a1479-704d-11dc-b86a-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksacxtFaARbYlpF HGQLW1NEUVR7WmV/ bggfZQBDYEtPQQRu WVZLQE1QERpoT0AI B2dPEn8UdwdOfHdz K0drV3cVWEN5JEd5 RUdJEm0CMXphaTRM TRJQcVJJcANLfxdA PlN4UyBcLwdSbGoL PyYYHB0LBgAXEAsd RQdFC3wpCUMCD3Y2 SlgAAC4zVURNTSw/ Zx0qJ1d0 X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:752/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/28 X-Sequence-Number: 108396 On Mon, 2007-10-01 at 10:13 -0700, Josh Berkus wrote: > > Maybe we need to actively discourage people from running Postgres > > against NFS-mounted data directories. Shane Kerr's paper cited above > > mentions some other rather scary properties, including O_EXCL file > > creation not really working properly. > > Wouldn't you be describing a Linux-specific issue, though? And possibly > kernel-specific? Possibly, though if you have any specific refutations of the Kerr paper then it would be a good idea to air them. It isn't enough to just hint some exist. > It's hard to reconcile this with the real-world performance of > PostgreSQL on NFS, which is happening all over the place. Most notably, > Joe Conway's 20,000 txn/sec. > > I *do* think it's an accurate statement that if you're going to use > Postgres, or any other OLTP database, on NFS you'd better have access to > a NAS expert. But to say that it's a bad idea even if you have expert > help is probably going to far. I can see many papers on database performance on NFS, but I don't see any discussion of potential reliability concerns. If anybody sits near an NAS expert, it would be great to have that discussion. I have found some comments that other databases require "specific configuration settings to ensure efficient and correct usage" of NFS "to access NAS storage devices". -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com