Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A2DA2475AE4 for ; Fri, 22 Nov 2002 10:01:48 -0500 (EST) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by postgresql.org (Postfix) with ESMTP id A8CD84758FE for ; Fri, 22 Nov 2002 10:01:47 -0500 (EST) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 18FFJY-0003Hs-00 for ; Fri, 22 Nov 2002 10:01:52 -0500 Date: Fri, 22 Nov 2002 10:01:52 -0500 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: [ADMIN] H/W RAID 5 on slower disks versus no raid on Message-ID: <20021122100152.I27984@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , pgsql-performance@postgresql.org References: <012201c2919f$fc4e1b40$0564a8c0@toolteam.net> <200211220831.11599.mweilguni@sime.com> <23482.1037973168@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <23482.1037973168@sss.pgh.pa.us>; from tgl@sss.pgh.pa.us on Fri, Nov 22, 2002 at 08:52:48AM -0500 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/199 X-Sequence-Number: 357 On Fri, Nov 22, 2002 at 08:52:48AM -0500, Tom Lane wrote: > Mario Weilguni writes: > > If 4 drives are an option, I suggest 2 x RAID1, one for data, and one for WAL and temporary DB space (pg_temp). > > Ideally there should be *nothing* on the WAL drive except WAL; you don't > ever want that disk head seeking away from the WAL. Put the temp files > on the data disk. Unless the interface and disks are so fast that it makes no difference. Try as I might, I can't make WAL go any faster on its own controller and disks than if I leave it on the same filesystem as everything else, on our production arrays. We use Sun A5200s, and I have tried it set up with the WAL on separate disks on the box, and on separate disks in the array, and even on separate disks on a separate controller in the array (I've never tried it with two arrays, but I don't have infinite money, either). I have never managed to demonstrate a throughput difference outside the margin of error of my tests. One arrangement -- putting the WAL on a separate pair of UFS disks using RAID 1, but not on the fibre channel -- was demonstrably slower than leaving the WAL in the data area. Nothing is proved by this, of course, except that if you're going to use high-performance hardware, you have to tune and test over and over again. I was truly surprised that a separate pair of VxFS RAID-1 disks in the array were no faster, but I guess it makes sense: the array is just as busy in either case, and the disks are really fast. I still don't really believe it, though. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110