Re: Need advice on postgresql.conf settings

From: Jeff <threshar(at)torgo(dot)978(dot)org>
To: "Shane | SkinnyCorp" <shanew(at)skinnycorp(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Need advice on postgresql.conf settings
Date: 2004-11-10 13:04:03
Message-ID: FF2CC26B-3318-11D9-9406-000D9366F0C4@torgo.978.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


On Nov 9, 2004, at 2:01 PM, Shane | SkinnyCorp wrote:

> Thanks in advance for anything you can do to help.
>
>
> The real issue is this, we have THE SAME queries taking anywhere from
> .001 - 90.0 seconds... the server is using 98% of the available RAM at
> all times (because of the persistant connections via php), and I don't
> know what to do. Every time I change a

I'd recommend strongly ditching the use of pconnect and use pgpool +
regular connect. It is a terrific combination that provides pool
connections like how you'd think they shoudl work (a pool of N
connections to PG shared by Y processes instead of a 1:1 mapping).

curiously, have you noticed any pattern to the slowdown?
It could be induced by a checkpoint or vacuum.

Are you swapping at all?

Are your PHP scripts leaking at all, etc.?

Your load average is high, how does your CPU idle look (if load is
high, and the cpus are pretty idle that is an indicator of being IO
bound).

good luck.

--
Jeff Trout <jeff(at)jefftrout(dot)com>
http://www.jefftrout.com/
http://www.stuarthamm.net/

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Kleiser 2004-11-10 13:51:57 How to speed-up inserts with jdbc
Previous Message Steinar H. Gunderson 2004-11-10 11:45:25 Re: simple select-statement takes more than 25 sec