From: Merlin Moncure <mmoncure@gmail.com>
To: Worky Workerson <worky.workerson@gmail.com>
Cc: Markus Schaber <schabi@logix-tt.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Best COPY Performance
Date: Wed, 25 Oct 2006 11:38:46 -0400
Message-ID: <b42b73150610250838g7e1cb6ccl30156787343bc79c@mail.gmail.com> (raw)
In-Reply-To: <ce4072df0610250825h324d30datece27c0c541162ff@mail.gmail.com>
References: <ce4072df0610201305u7836dc7bn437ec0aaf1c3e25f@mail.gmail.com>
<453C8B0D.4070803@logix-tt.com>
<ce4072df0610230840r4b3df653h3144dab06bdb9ed2@mail.gmail.com>
<b42b73150610250620r37cf9269m7b6e43b9835bdbcf@mail.gmail.com>
<ce4072df0610250825h324d30datece27c0c541162ff@mail.gmail.com>
On 10/25/06, Worky Workerson <worky.workerson@gmail.com> wrote:
> > I'm guessing the high bursts are checkpoints. Can you check your log
> > files for pg and see if you are getting warnings about checkpoint
> > frequency? You can get some mileage here by increasing wal files.
>
> Nope, nothing in the log. I have set:
> wal_buffers=128
> checkpoint_segments=128
> checkpoint_timeout=3000
> which I thought was rather generous. Perhaps I should set it even
> higher for the loads?
>
> > Have you determined that pg is not swapping? try upping maintenance_work_mem.
>
> maintenance_work_mem = 524288 ... should I increase it even more?
> Doesn't look like pg is swapping ...
nah, you already addressed it. either pg is swapping or it isnt, and
i'm guessing it isn't.
> I'm currently running bonnie++ with the defaults ... should I change
> the execution to better mimic Postgres' behavior?
just post what you have...
> RHEL 4.3 x86_64
> HP DL585, 4 Dual Core Opteron 885s
> 16 GB RAM
> 2x300GB 10K SCSI320, RAID10
> HP MSA1000 SAN direct connected via single 2GB Fibre Channel Arbitrated Loop
> 10x300GB 10K SCSI320, RAID10
in theory, with 10 10k disks in raid 10, you should be able to keep
your 2fc link saturated all the time unless your i/o is extremely
random. random i/o is the wild card here, ideally you should see at
least 2000 seeks in bonnie...lets see what comes up.
hopefully, bonnie will report close to 200 mb/sec. in extreme
sequential cases, the 2fc link should be a bottleneck if the raid
controller is doing its job.
if you are having cpu issues, try breaking your process down to at
least 4 processes (you have quad dual core box after all)...thats a no
brainer.
merlin
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: mmoncure@gmail.com, worky.workerson@gmail.com, schabi@logix-tt.com
Subject: Re: Best COPY Performance
In-Reply-To: <b42b73150610250838g7e1cb6ccl30156787343bc79c@mail.gmail.com>
References: <ce4072df0610201305u7836dc7bn437ec0aaf1c3e25f@mail.gmail.com> <453C8B0D.4070803@logix-tt.com> <ce4072df0610230840r4b3df653h3144dab06bdb9ed2@mail.gmail.com> <b42b73150610250620r37cf9269m7b6e43b9835bdbcf@mail.gmail.com> <ce4072df0610250825h324d30datece27c0c541162ff@mail.gmail.com> <b42b73150610250838g7e1cb6ccl30156787343bc79c@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