From: | "Luke Lonergan" <LLonergan(at)greenplum(dot)com> |
---|---|
To: | "Steve Oualline" <soualline(at)stbernard(dot)com>, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Database restore speed |
Date: | 2005-12-02 06:11:53 |
Message-ID: | 3E37B936B592014B978C4415F90D662D01C48EFF@MI8NYCMAIL06.Mi8.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Steve,
> When we restore the postmaster process tries to use 100% of the CPU.
>
> The questions we have are:
>
> 1) What is postmaster doing that it needs so much CPU?
Parsing mostly, and attribute conversion from text to DBMS native
formats.
> 2) How can we get our system to go faster?
Use Postgres 8.1 or Bizgres. Get a faster CPU.
These two points are based on our work to improve COPY speed, which led
to a near doubling in Bizgres, and in the 8.1 version it's about 60-70%
faster than in Postgres 8.0.
There are currently two main bottlenecks in COPY, one is parsing +
attribute conversion (if the postgres CPU is nailed at 100% that's what
your limit is) and the other is the write speed through the WAL. You
can roughly divide the write speed of your disk by 3 to get that limit,
e.g. if your disk can write 8k blocks at 100MB/s, then your COPY speed
might be limited to 33MB/s. You can tell which of these limits you've
hit using "vmstat 1" on Linux or iostat on Solaris and watch the blocks
input/output on your disk while you watch your CPU.
> Note: We've tried adjusting the checkpoint_segements
> parameter to no effect.
No surprise.
- Luke
From | Date | Subject | |
---|---|---|---|
Next Message | David Lang | 2005-12-02 07:07:56 | Re: filesystem performance with lots of files |
Previous Message | Luke Lonergan | 2005-12-02 05:15:57 | Re: COPY into table too slow with index: now an I/O |