Re: The black art of postgresql.conf tweaking

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: The black art of postgresql.conf tweaking
Дата
Msg-id 200408060929.19840.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: The black art of postgresql.conf tweaking  (Gaetano Mendola <mendola@bigfoot.com>)
Ответы Re: The black art of postgresql.conf tweaking
Список pgsql-performance
Paul,

> > Physical Memory: 2077264 kB

> > sort_mem = 12000

Hmmm.  Someone may already have mentioned this, but that looks problematic.
You're allowing up to 12MB per sort, and up to 300 connections.  Even if each
concurrent connection averages only one sort (and they can use more) that's
3600MB ... roughly 1.5 times your *total* RAM, leaving out RAM for Apache,
postmaster, shared buffers, etc.

I strongly suggest that you either decrease your total connections or your
sort_mem, or both.

--
Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Re: The black art of postgresql.conf tweaking
Следующее
От: Mike Benoit
Дата:
Сообщение: Re: Performance Bottleneck