Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id ED9F59FA4F0 for ; Fri, 20 Oct 2006 09:19:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 09402-09 for ; Fri, 20 Oct 2006 09:19:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lynet.oppetid.no (oppetid.no [80.65.51.2]) by postgresql.org (Postfix) with ESMTP id 955049FB1D5 for ; Fri, 20 Oct 2006 09:19:02 -0300 (ADT) Received: by lynet.oppetid.no (Postfix, from userid 1019) id CE93311A363; Fri, 20 Oct 2006 14:18:57 +0200 (CEST) Date: Fri, 20 Oct 2006 14:18:57 +0200 From: Tobias Brox To: "Jim C. Nasby" Cc: Tobias Brox , pgsql-performance@postgresql.org Subject: Re: Swappiness setting on a linux pg server Message-ID: <20061020121857.GA11885@oppetid.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: Group Nordicbet User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.172 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/429 X-Sequence-Number: 21558 [Jim C. Nasby - Thu at 11:31:26AM -0500] > The issue with pg_xlog is you don't need bandwidth... you need super-low > latency. The best way to accomplish that is to get a battery-backed RAID > controller that you can enable write caching on. In fact, if the > controller is good enough, you can theoretically get away with just > building one big RAID10 and letting the controller provide the > low-latency fsyncs that pg_xlog depends on. I was talking a bit about our system administrator. We're running 4 disks in raid 1+0 for the database and 2 disks in raid 1 for the WALs and for OS. He wasn't really sure if we had write cacheing on the RAID controller or not. He pasted me some lines from the dmesg: sda: asking for cache data failed sda: assuming drive cache: write through failed line is expected from these controllers 0000:02:0e.0 RAID bus controller: Dell PowerEdge Expandable RAID controller 4 (rev 06) I think we're going to move system logs, temporary files and backup files from the wal-disks to the db-disks. Since our database aren't on fire for the moment, I suppose we'll wait moving the rest of the OS :-)