Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 54B6163223B for ; Mon, 16 Aug 2010 17:02:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 07194-04 for ; Mon, 16 Aug 2010 20:02:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.anarazel.de (mail.anarazel.de [217.115.131.40]) by mail.postgresql.org (Postfix) with ESMTP id 5266E6334EA for ; Mon, 16 Aug 2010 17:02:42 -0300 (ADT) Received: by mail.anarazel.de (Postfix, from userid 108) id EC8C944800A; Mon, 16 Aug 2010 22:02:35 +0200 (CEST) Received: from anarazel.de (e178215009.adsl.alicedsl.de [85.178.215.9]) by mail.anarazel.de (Postfix) with ESMTPSA id 951C644800B; Mon, 16 Aug 2010 22:02:28 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id AFF891C00A7; Mon, 16 Aug 2010 22:02:27 +0200 (CEST) Date: Mon, 16 Aug 2010 22:02:27 +0200 From: Andres Freund To: Greg Smith Cc: Scott Carey , Bruce Momjian , Kenneth Cox , "pgsql-performance@postgresql.org" Subject: Re: Advice configuring ServeRAID 8k for performance Message-ID: <20100816200227.GA3911@anarazel.de> References: <201008131817.o7DIH1b03550@momjian.us> <4C6591D9.1080206@2ndquadrant.com> <5687A8AD-CA70-4272-A32C-6AE5F491CEA4@richrelevance.com> <4C69796D.9000408@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C69796D.9000408@2ndquadrant.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/159 X-Sequence-Number: 40002 On Mon, Aug 16, 2010 at 01:46:21PM -0400, Greg Smith wrote: > Scott Carey wrote: > >This is because an fsync on ext3 flushes _all dirty pages in the file system_ to disk, not just those for the file being fsync'd. > >One partition for WAL, one for data. If using ext3 this is > >essentially a performance requirement no matter how your array is > >set up underneath. > > Unless you want the opposite of course. Some systems split out the > WAL onto a second disk, only to discover checkpoint I/O spikes > become a problem all of the sudden after that. The fsync calls for > the WAL writes keep the write cache for the data writes from ever > getting too big. This slows things down on average, but makes the > worst case less stressful. Free lunches are so hard to find > nowadays... 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.)... Andres