From: | "Isak Hansen" <isak(dot)hansen(at)gmail(dot)com> |
---|---|
To: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
Cc: | "Sim Zacks" <sim(at)compulab(dot)co(dot)il>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: 8.2.4 serious slowdown |
Date: | 2008-01-10 20:00:47 |
Message-ID: | 6b9e1eb20801101200k5f0592b8t46237708c2d3932a@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On 1/10/08, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> wrote:
> On Jan 10, 2008 12:33 PM, Sim Zacks <sim(at)compulab(dot)co(dot)il> wrote:
> > > Perhaps a suboptimal plan is picked due to configuration issues, e.g.
> > > memory constraints? Could you post your postgresql.conf as well?
> >
> > Below is the postgresql.conf file for 8.2.4. The server has 2 GB of RAM and it was not maxed out when I ran the query.
> > As I mentioned, I tried running both 8.0.11 and 8.2.4 on the same hardware, so that I would see if it was a difference in the hardware or the database.
> >
> > # -----------------------------
> > # PostgreSQL configuration file
> > # -----------------------------
>
> > shared_buffers = 24MB# min 128kB or max_connections*16kB
> That's really low. Try setting it to something a bit more aggressive,
> say 100MB to 500MB. On a machine with 2 Gig ram, that's a pretty
> reasonable range.
>
> > #work_mem = 1MB# min 64kB
> Try setting this a little higher, say 16 to 32 Megs.
>
Also, effective_cache_size should be about 1GB on a server with 2GB ram.
See <http://www.westnet.com/~gsmith/content/postgresql/pg-5minute.htm>
for a quick, up-to-date, intro to postgres tuning.
Kind regards,
Isak
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2008-01-10 20:02:14 | Re: 8.3beta bug or feature? |
Previous Message | marcelo Cortez | 2008-01-10 19:19:54 | Re: 8.3beta bug or feature? |
From | Date | Subject | |
---|---|---|---|
Next Message | Gavin Sherry | 2008-01-10 20:43:48 | Re: Dynamic Partitioning using Segment Visibility Maps |
Previous Message | Scott Marlowe | 2008-01-10 19:08:57 | Re: 8.2.4 serious slowdown |