X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6811AD1B52F for ; Fri, 12 Sep 2003 16:38:36 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 16347-06 for ; Fri, 12 Sep 2003 13:38:26 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id B042AD1B4F9 for ; Fri, 12 Sep 2003 13:38:25 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h8CGcPsl055102 for ; Fri, 12 Sep 2003 16:38:25 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h8CGA2XQ047525 for pgsql-performance@postgresql.org; Fri, 12 Sep 2003 16:10:02 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.performance Subject: Re: best arrangement of 3 disks for (insert) performance Date: Fri, 12 Sep 2003 11:24:41 -0400 Organization: Hub.Org Networking Services Lines: 30 Message-ID: <60fzj2t4g6.fsf@dev6.int.libertyrms.info> References: <200309121126.29756.rj@last.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Rational FORTRAN, linux) Cancel-Lock: sha1:mGV0YGS8RXyFhLx5wMbvQmlzwqM= To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/200 X-Sequence-Number: 3566 rj@last.fm (Richard Jones) writes: > I have some new hardware on the way and would like some advice on > how to get the most out of it.. > > its a dual xeon 2.4, 4gb ram and 3x identical 15k rpm scsi disks > > should i mirror 2 of the disks for postgres data, and use the 3rd > disk for the o/s and the pg logs or raid5 the 3 disks or even stripe > 2 disks for pg and use the 3rd for o/s,logs,backups ? > > the machine will be dealing with lots of inserts, basically as many > as we can throw at it Having WAL on a separate drive from the database would be something of a win. I'd buy that 1 disk for OS+WAL and then RAID [something] across the other two drives for the database would be pretty helpful. After doing some [loose] benchmarking, the VERY best way to improve performance would involve a RAID controller with battery-backed cache. On a box with similar configuration to yours, it took ~3h for a particular set of data to load; on another one with battery-backed cache (and a dozen fast SCSI drives :-)), the same data took as little as 6 minutes to load. The BIG effect seemed to come from the controller. -- (reverse (concatenate 'string "ofni.smrytrebil" "@" "enworbbc")) Christopher Browne (416) 646 3304 x124 (land)