Re: Need advice on postgresql.conf settings

Поиск
Список
Период
Сортировка
От Jeff
Тема Re: Need advice on postgresql.conf settings
Дата
Msg-id FF2CC26B-3318-11D9-9406-000D9366F0C4@torgo.978.org
обсуждение исходный текст
Ответ на Need advice on postgresql.conf settings  ("Shane | SkinnyCorp" <shanew@skinnycorp.com>)
Ответы How to speed-up inserts with jdbc  (Michael Kleiser <mkl@webde-ag.de>)
Список 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@jefftrout.com>
http://www.jefftrout.com/
http://www.stuarthamm.net/


В списке pgsql-performance по дате отправления:

Предыдущее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: simple select-statement takes more than 25 sec
Следующее
От: Michael Kleiser
Дата:
Сообщение: How to speed-up inserts with jdbc