Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 35CF69FA618 for ; Sun, 22 Jul 2007 13:44:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 03530-02 for ; Sun, 22 Jul 2007 13:44:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from exprod6og52.obsmtp.com (exprod6og52.obsmtp.com [64.18.1.185]) by postgresql.org (Postfix) with SMTP id 110559FA601 for ; Sun, 22 Jul 2007 13:44:17 -0300 (ADT) Received: from source ([63.240.6.44]) (using TLSv1) by exprod6ob52.postini.com ([64.18.5.12]) with SMTP; Sun, 22 Jul 2007 09:43:59 PDT Received: from 172.16.1.25 by mail.mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D4)); Sun, 22 Jul 2007 12:43:48 -0400 X-Server-Uuid: C8FB4D43-1108-484A-A898-3CBCC7906230 Received: from MI8NYCMAIL08.Mi8.com ([172.16.1.164]) by D01HOST03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 22 Jul 2007 12:43:48 -0400 Received: from 24.23.197.133 ([24.23.197.133]) by MI8NYCMAIL08.Mi8.com ( [172.16.1.190]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.118]) with Microsoft Exchange Server HTTP-DAV ; Sun, 22 Jul 2007 16:43:48 +0000 User-Agent: Microsoft-Entourage/11.3.6.070618 Date: Sun, 22 Jul 2007 09:43:47 -0700 Subject: Re: Postgres configuration for 64 CPUs, 128 GB RAM... From: "Luke Lonergan" To: "Josh Berkus" , pgsql-performance@postgresql.org cc: "Marc Mamin" Message-ID: Thread-Topic: [PERFORM] Postgres configuration for 64 CPUs, 128 GB RAM... Thread-Index: AcfMf3k4t7tYYDhyEdyXawAbY5GgAQ== In-Reply-To: <200707201626.08281.josh@agliodbs.com> MIME-Version: 1.0 X-OriginalArrivalTime: 22 Jul 2007 16:43:48.0522 (UTC) FILETIME=[7A20A0A0:01C7CC7F] X-WSS-ID: 6ABD56CE32C9952244-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/285 X-Sequence-Number: 25969 Josh, On 7/20/07 4:26 PM, "Josh Berkus" wrote: > There are some specific tuning parameters you need for ZFS or performance > is going to suck. > > http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide > (scroll down to "PostgreSQL") > http://www.sun.com/servers/coolthreads/tnb/applications_postgresql.jsp > http://bugs.opensolaris.org/view_bug.do?bug_id=6437054 > > You also don't say anything about what kind of workload you're running. I think we're assuming that the workload is OLTP when putting these tuning guidelines forward. Note that the ZFS tuning guidance referred to in this bug article recommend "turning vdev prefetching off" for "random I/O (databases)". This is exactly the opposite of what we should do for OLAP workloads. Also, the lore that setting recordsize on ZFS is mandatory for good database performance is similarly not appropriate for OLAP work. If the workload is OLAP / Data Warehousing, I'd suggest ignoring all of the tuning information from Sun that refers generically to "database". The untuned ZFS performance should be far better in those cases. Specifically, these three should be ignored: - (ignore this) limit ARC memory use - (ignore this) set recordsize to 8K - (ignore this) turn off vdev prefetch - Luke