Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A4E29632BC8 for ; Mon, 16 Aug 2010 17:13:41 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 56545-05 for ; Mon, 16 Aug 2010 20:13:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id 33F3463280E for ; Mon, 16 Aug 2010 17:13:34 -0300 (ADT) Received: from [192.168.1.151] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MGE0B-1Oi5eF0tUN-00F8hb; Mon, 16 Aug 2010 22:13:25 +0200 Message-ID: <4C699BE2.50606@2ndquadrant.com> Date: Mon, 16 Aug 2010 16:13:22 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Andres Freund CC: Scott Carey , Bruce Momjian , Kenneth Cox , "pgsql-performance@postgresql.org" Subject: Re: Advice configuring ServeRAID 8k for performance References: <201008131817.o7DIH1b03550@momjian.us> <4C6591D9.1080206@2ndquadrant.com> <5687A8AD-CA70-4272-A32C-6AE5F491CEA4@richrelevance.com> <4C69796D.9000408@2ndquadrant.com> <20100816200227.GA3911@anarazel.de> In-Reply-To: <20100816200227.GA3911@anarazel.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:ON3GO1E/o5cIVMnZTjoEpTCgyPeZSBcnHzErvNR4WQ1 k05WkCbuKIlutCdKn11uMdYsN1B2hdWPUELrIh+qXzHV7XF1VT FoEDuS11e1HXuH+d6E4774UeeqJatTUx2pCF/+mfpe7SNf6ebF W6dRhVRW57TW+FXrJu1iLKSrLhDSOV7+73dcJE2wmlqP2NFGl7 460scDaF7Vco1OLdUMxyeOyj+WlguWuQlWDoJZckys= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/160 X-Sequence-Number: 40003 Andres Freund wrote: > Or use -o sync. Or configure a ridiciuosly low dirty_memory amount > (which has a problem on large systems because 1% can still be too > much. Argh.)... > -o sync completely trashes performance, and trying to set the dirty_ratio values to even 1% doesn't really work due to things like the "congestion avoidance" code in the kernel. If you sync a lot more often, which putting the WAL on the same disk as the database accidentally does for you, that works surprisingly well at avoiding this whole class of problem on ext3. A really good solution is going to take a full rewrite of the PostgreSQL checkpoint logic though, which will get sorted out during 9.1 development. (cue dramatic foreshadowing music here) -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us