X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C7B77D88A6 for ; Thu, 1 Sep 2005 07:50:24 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 74884-03 for ; Thu, 1 Sep 2005 10:50:20 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 08E30D6D83 for ; Thu, 1 Sep 2005 07:50:19 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 6C7B240C3B0; Thu, 1 Sep 2005 11:50:15 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 519EE15F1C; Thu, 1 Sep 2005 11:46:50 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26846-10; Thu, 1 Sep 2005 11:46:46 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 7FF7715F27; Thu, 1 Sep 2005 11:45:23 +0100 (BST) Message-ID: <4316DBC5.8060504@archonet.com> Date: Thu, 01 Sep 2005 11:45:25 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Morgan Kita Cc: pgsql-performance@postgresql.org Subject: Re: Big question on insert performance/using COPY FROM References: <08B420FF5BF7BC42A064212C2EB768801C10BE@neutron.verseon.com> In-Reply-To: <08B420FF5BF7BC42A064212C2EB768801C10BE@neutron.verseon.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 required=5 tests=[AWL=0.007, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/1 X-Sequence-Number: 14309 Morgan Kita wrote: > Hi, > > I am currently trying to speed up the insertion of bulk loads to my > database. I have fiddled with all of the parameters that I have seen > suggested(aka checkpoint_segments, checkpoint_timeout, > maintinence_work_mem, and shared buffers) with no success. I even > turned off fysnc with no effect so I am pretty sure the biggest > problem is that the DB is CPU limited at the moment because of the > rather weak machine that postmaster is running on(Athlon 2400+ xp > with 512 RAM) Don't be pretty sure, be abolutely sure. What do your various system-load figures show? Windows has a system performance monitoring tool that can show CPU/Memory/Disk IO, and *nix tools have vmstat or iostat. -- Richard Huxton Archonet Ltd