X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 440A29DD765 for ; Fri, 2 Dec 2005 16:05:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95894-09 for ; Fri, 2 Dec 2005 16:05:37 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtpauth04.mail.atl.earthlink.net (smtpauth04.mail.atl.earthlink.net [209.86.89.64]) by postgresql.org (Postfix) with ESMTP id DEC5C9DD77F for ; Fri, 2 Dec 2005 16:05:37 -0400 (AST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=WDLSTU7dSkOICGgkdtOTfSHzTtBvypThREbdEzqZCY9uGyJ6PdcOBZ12A9RHuyW+; h=Received:Message-Id:X-Mailer:Date:To:From:Subject:In-Reply-To:References:Mime-Version:Content-Type:X-ELNK-Trace:X-Originating-IP; Received: from [70.22.193.119] (helo=ron-6d52adff2a6.earthlink.net) by smtpauth04.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1EiH9z-0001Pk-VR; Fri, 02 Dec 2005 15:05:36 -0500 Message-Id: <6.2.5.6.0.20051202145746.01dc7b68@earthlink.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6 Date: Fri, 02 Dec 2005 15:05:30 -0500 To: "Rick Schumeyer" , From: Ron Subject: Re: two disks - best way to use them? In-Reply-To: <00fb01c5f772$59471410$0200a8c0@dell8200> References: <00fb01c5f772$59471410$0200a8c0@dell8200> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-ELNK-Trace: acd68a6551193be5d780f4a490ca69563f9fea00a6dd62bcee13dc2d195dd178d1eb730f29fbc904350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 70.22.193.119 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.279 required=5 tests=[AWL=-0.200, DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.279 X-Spam-Level: X-Archive-Number: 200512/73 X-Sequence-Number: 15894 At 01:58 PM 12/2/2005, Rick Schumeyer wrote: >I installed another drive in my linux pc in an attempt to improve performance >on a large COPY to a table with a geometry index. > >Based on previous discussion, it seems there are three things >competing for the hard drive: > >1) the input data file >2) the pg table >3) the WAL > >What is the best way to distribute these among two drives? From >Tom's comments >I would think that the pg table and the WAL should be >separate. Does it matter where the input data is? Best is to have 3 HD or HD sets, one for each of the above. With only 2, and assuming the input file is too large to fit completely into RAM at once, I'd test to see whether: a= input on one + pg table & WAL on the other, or b= WAL on one + pg table & input file on the other is best. If the input file can be made 100% RAM resident, then use c= pg table on one + WAL and input file on the other. The big goal here is to minimize HD head seeks. Ron