Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id EC47E9FB3BB for ; Wed, 14 Mar 2007 21:52:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 88589-08 for ; Wed, 14 Mar 2007 21:52:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by postgresql.org (Postfix) with ESMTP id 642559FB309 for ; Wed, 14 Mar 2007 21:52:21 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id k3so111849ugf for ; Wed, 14 Mar 2007 17:52:19 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iXeDPuPjT/kM+G6Iq/oUueMdAFgGlk2bPpl3B66QS+kusUjlI0xVJT4Tmr3XW7hly+kFtW6gWKgEKwNJGCvgRMocPR/GP7GTlRI8zYbAQRbp5B3Gf5IbhACbwIpb+R3yAfoN54lS+1QVzA+znswDauw5k3xQTwcg3XsdXIocR5I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mi12Eel2aw+A3TVW9ZHpSdUUYpVKEDKzyc9zInAleVuz2mN+at2rHbLu9WJ3Nt8naXfsTMe5QTqVFfVQkrOGRVzbd+3WHtowq59INh9r9P/QISItjOFQge71WKA3gBRt+QfnR2LlPLO4JElk30tp9rbowXciX1ZHu5xvQ+lUhQI= Received: by 10.78.204.20 with SMTP id b20mr29318hug.1173919939478; Wed, 14 Mar 2007 17:52:19 -0700 (PDT) Received: by 10.78.35.18 with HTTP; Wed, 14 Mar 2007 17:52:19 -0700 (PDT) Message-ID: Date: Thu, 15 Mar 2007 06:22:19 +0530 From: "Merlin Moncure" To: femski Subject: Re: Postgres batch write very slow - what to do Cc: pgsql-performance@postgresql.org In-Reply-To: <9473692.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9452092.post@talk.nabble.com> <45F685B7.5040001@enterprisedb.com> <9453712.post@talk.nabble.com> <9473692.post@talk.nabble.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/240 X-Sequence-Number: 23645 On 3/14/07, femski wrote: > > Ok, I turned off XDMCP and network bandwidth utilization dropped to less than > 5%. > Timings remained the same. > > Curiously five times faster time for Oracle came from a client running on a > different host than the server. > To make things worse for Postgres, when I replace "hostname" in jdbc string > to "localhost" or 127.0.0.1 > it runs another 60% slower (446 sec vs 275 sec). Strange. > > Before I take this discussion to jdbc list, why is CPU utilization 100% > during insert ? could that be a bottleneck. How to eliminate it ? These are > Intel WordCrest 5110 Xeon cores. when loading to oracle, does it utilize more than one core? istm your best bet would be to split load process to 4+ backends... merlin