Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 739CC9FB5D4 for ; Wed, 14 Mar 2007 09:47:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 31877-09 for ; Wed, 14 Mar 2007 09:46:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by postgresql.org (Postfix) with ESMTP id 28BCC9FB7D8 for ; Wed, 14 Mar 2007 09:46:57 -0300 (ADT) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HRSsZ-0001d1-5W for pgsql-performance@postgresql.org; Wed, 14 Mar 2007 05:46:55 -0700 Message-ID: <9473692.post@talk.nabble.com> Date: Wed, 14 Mar 2007 05:46:55 -0700 (PDT) From: femski To: pgsql-performance@postgresql.org Subject: Re: Postgres batch write very slow - what to do In-Reply-To: <9453712.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: hypertree@yahoo.com References: <9452092.post@talk.nabble.com> <45F685B7.5040001@enterprisedb.com> <9453712.post@talk.nabble.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/239 X-Sequence-Number: 23644 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. thank you -Sanjay femski wrote: > > I am runing Postgres 8.2 on OpenSuse 10.2 with latest jdbc driver. I moved > the app to be collocated with the server. Oracle takes 60 sec. Postgres > 275 sec. For 4.7 million rows. > > There are 4 CPUs on the server and one is runing close to 100% during > inserts. > Network history shows spikes of upto 60% of the bandwidth (Gnome System > monitor graph). I have a gigabit card - but should not enter into picture > since its on local host. > > thanks, > > -Sanjay > -- View this message in context: http://www.nabble.com/Postgres-batch-write-very-slow---what-to-do-tf3395195.html#a9473692 Sent from the PostgreSQL - performance mailing list archive at Nabble.com.