Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 19BA564FCDE for ; Fri, 8 Aug 2008 19:42:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 95522-09 for ; Fri, 8 Aug 2008 19:42:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from westnet.com (westnet.com [216.187.52.2]) by postgresql.org (Postfix) with ESMTP id 2E9B264FCD7 for ; Fri, 8 Aug 2008 19:42:09 -0300 (ADT) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id m78Mg54r026344; Fri, 8 Aug 2008 18:42:05 -0400 (EDT) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id m78Mg5lX026338; Fri, 8 Aug 2008 18:42:05 -0400 (EDT) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Fri, 8 Aug 2008 18:42:05 -0400 (EDT) From: Greg Smith X-X-Sender: gsmith@westnet.com To: Henrik cc: pgsql-performance@postgresql.org Subject: Re: Filesystem setup on new system In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/80 X-Sequence-Number: 30961 On Thu, 7 Aug 2008, Henrik wrote: > My first idea was to have one partition on the RAID 10 using ext3 with > data=writeback, noatime as mount options. > > But I wonder if I should have 2 partitions on the RAID 10 one for the PGDATA > dir using ext3 and one partition for XLOGS using ext2. Really depends on your write volume. The write cache on your controller will keep having a separate xlog disk from being as important as it is without one. If your write volume is really high though, it may still be a bottleneck, and you may discover your app runs better with a dedicated ext2 xlog disk instead. The simple version is: WAL write volume extremely high->dedicated xlog can be better WAL volume low->more disks for the database array better even if that mixes the WAL on there as well If you want a true answer for which is better, you have to measure your application running on this hardware. > 6 SAS 15K drives in RAID 10 on one of the SAN controllers for database With only 6 disks available, in general you won't be able to reach the WAL as a bottleneck before being limited by seeks on the remaining 4 database disks, so you might as well group all 6 together. It's possible your particular application might prefer it the other way though, if you're doing a while lot of small writes for example. I've seen a separate WAL handle low-level benchmarks better, but on more real-world loads it's harder to run into that situation. -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD