Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 955172E0050 for ; Fri, 21 Mar 2008 10:22:40 -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 29216-01 for ; Fri, 21 Mar 2008 10:22:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (87-127-95-194.no-dns-yet.enta.net [87.127.95.194]) by postgresql.org (Postfix) with ESMTP id 344302E0053 for ; Fri, 21 Mar 2008 10:22:28 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.69) (envelope-from ) id 1JchCU-0007Lu-Fe; Fri, 21 Mar 2008 13:22:26 +0000 To: "Dawid Kuroczko" Cc: "Chris Hoover" , "PGSQL Performance" Subject: Re: PostgreSQL NetApp and NFS In-Reply-To: <758d5e7f0803210234l785b115as6f4b42f42fa97f13@mail.gmail.com> (Dawid Kuroczko's message of "Fri\, 21 Mar 2008 10\:34\:09 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 4877) References: <1d219a6f0803201232g54924fb3ka206c9b03e4664c7@mail.gmail.com> <758d5e7f0803210234l785b115as6f4b42f42fa97f13@mail.gmail.com> From: Gregory Stark Organization: EnterpriseDB Date: Fri, 21 Mar 2008 13:22:26 +0000 Message-ID: <87tzj0qkj1.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/420 X-Sequence-Number: 29374 "Dawid Kuroczko" writes: > It is also possible to present block devices from NetApp over iSCSI or FC > (I am not sure about licensing model though). You get all the goodies > like thin provisioning (only non-zero blocks are allocated), snapshots and > all, but you see it as a block device. Works fine. Note that Postgres doesn't expect to get "out of space" errors on writes specifically because it pre-allocates blocks. So this "thin provisioning" thing sounds kind of dangerous. > It is also worth to mention that NetApp utilizes somewhat "copy on write" > write strategy -- so whenever you modify a block, new version of the block > is written on its WAFL filesystem. In practical terms it is quite resilient to > random writes (and that read performance is not stellar ;)). Again, Postgres goes to some effort to keep its reads sequential. So this sounds like it destroys that feature. Random writes don't matter so much because Postgres has its WAL which it writes sequentially. Writes to data files aren't in the critical path and can finish after the transaction is committed. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Get trained by Bruce Momjian - ask me about EnterpriseDB's PostgreSQL training!