pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christian Bourque <christian.bourque@gmail.com>
To: pgsql-performance@postgresql.org
Subject: bulk insert performance problem
Date: Mon, 7 Apr 2008 23:01:18 -0400
Message-ID: <a6ee49d30804072001mf776603se42c475548cde018@mail.gmail.com> (raw)

Hi,

I have a performance problem with a script that does massive bulk
insert in 6 tables. When the script starts the performance is really
good but will degrade minute after minute and take almost a day to
finish!

I almost tried everything suggested on this list, changed our external
raid array from raid 5 to raid 10, tweaked postgresql.conf to the best
of my knowledge, moved pg_xlog to a different array, dropped the
tables before running the script. But the performance gain was
negligible even after all these changes...

IMHO the hardware that we use should be up to the task: Dell PowerEdge
6850, 4 x 3.0Ghz Dual Core Xeon, 8GB RAM, 3 x 300GB SAS 10K in raid 5
for / and 6 x 300GB SAS 10K in raid 10 (MD1000) for PG data, the data
filesystem is ext3 mounted with noatime and data=writeback. Running on
openSUSE 10.3 with PostgreSQL 8.2.7. The server is dedicated for
PostgreSQL...

We tested the same script and schema with Oracle 10g on the same
machine and it took only 2.5h to complete!

What I don't understand is that with Oracle the performance seems
always consistent but with PG it deteriorates over time...

Any idea? Is there any other improvements I could do?

Thanks

Christian



view thread (8+ messages)  latest in thread

Message-ID: <a6ee49d30804072001mf776603se42c475548cde018@mail.gmail.com>
Permalink:  ../a6ee49d30804072001mf776603se42c475548cde018@mail.gmail.com/
Also on:    postgresql.org/message-id/a6ee49d30804072001mf776603se42c475548cde018@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: christian.bourque@gmail.com
  Subject: Re: bulk insert performance problem
  In-Reply-To: <a6ee49d30804072001mf776603se42c475548cde018@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox