Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id BAEC29FB1D5 for ; Wed, 25 Oct 2006 17:13:39 -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 61753-02 for ; Wed, 25 Oct 2006 17:13:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from exprod6og50.obsmtp.com (exprod6og50.obsmtp.com [64.18.1.181]) by postgresql.org (Postfix) with SMTP id A6B9D9FB274 for ; Wed, 25 Oct 2006 17:13:38 -0300 (ADT) Received: from source ([63.240.6.44]) by exprod6ob50.postini.com ([64.18.5.12]) with SMTP; Wed, 25 Oct 2006 13:13:34 PDT Received: from 172.16.1.114 by mail.mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D4)); Wed, 25 Oct 2006 16:13:29 -0400 X-Server-Uuid: C8FB4D43-1108-484A-A898-3CBCC7906230 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.175]) by d01smtp07.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Oct 2006 16:13:28 -0400 Received: from 69.181.100.71 ([69.181.100.71]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.105]) with Microsoft Exchange Server HTTP-DAV ; Wed, 25 Oct 2006 20:13:28 +0000 User-Agent: Microsoft-Entourage/11.2.5.060620 Date: Wed, 25 Oct 2006 13:13:25 -0700 Subject: Re: Best COPY Performance From: "Luke Lonergan" To: "Worky Workerson" cc: "Merlin Moncure" , "Markus Schaber" , pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] Best COPY Performance Thread-Index: Acb4cgbCRWXzTGRlEduYOAAWy4o9DA== In-Reply-To: MIME-Version: 1.0 X-OriginalArrivalTime: 25 Oct 2006 20:13:28.0732 (UTC) FILETIME=[08FBD5C0:01C6F872] X-WSS-ID: 69211AE32TS3248564-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/530 X-Sequence-Number: 21659 Mr. Worky, On 10/25/06 11:26 AM, "Worky Workerson" wrote: > And here are the dd results for 16GB RAM, i.e. 4,000,000 8K blocks: So, if we divide 32,000 MB by the real time, we get: /home (WAL): 53 MB/s write 84 MB/s read /data (data): 89 MB/s write 38 MB/s read The write and read speeds on /home look like a single disk drive, which is not good if you have more drives in a RAID. OTOH, it should be sufficient for WAL writing and you should think that the COPY speed won't be limited by WAL. The read speed on your /data volume is awful to the point where you should consider it broken and find a fix. A quick comparison: the same number on a 16 drive internal SATA array with 7200 RPM disks gets 950 MB/s read, about 25 times faster for about 1/4 the price. But again, this may not have anything to do with the speed of your COPY statements. Can you provide about 10 seconds worth of "vmstat 1" while running your COPY so we can get a global view of the I/O and CPU? - Luke