Re: PostgreSQL 8.4 performance tuning questions

Поиск
Список
Период
Сортировка
Искать
От
Scott Marlowe
Тема
Re: PostgreSQL 8.4 performance tuning questions
Дата
Msg-id
dcc563d10907302211y4b8c919el8290756a678eff71@mail.gmail.com
Ответ на
Список
Дерево обсуждения
PostgreSQL 8.4 performance tuning questions Rauan Maemirov <rauan@maemirov.com>
Re: PostgreSQL 8.4 performance tuning questions tv@fuzzy.cz
Re: PostgreSQL 8.4 performance tuning questions Rauan Maemirov <rauan@maemirov.com>
Re: PostgreSQL 8.4 performance tuning questions tv@fuzzy.cz
Re: PostgreSQL 8.4 performance tuning questions Steve Crawford <scrawford@pinpointresearch.com>
Re: PostgreSQL 8.4 performance tuning questions "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: PostgreSQL 8.4 performance tuning questions Steve Crawford <scrawford@pinpointresearch.com>
Re: PostgreSQL 8.4 performance tuning questions Matthew Wakeling <matthew@flymine.org>
Re: PostgreSQL 8.4 performance tuning questions "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: PostgreSQL 8.4 performance tuning questions Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.4 performance tuning questions "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: PostgreSQL 8.4 performance tuning questions "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: PostgreSQL 8.4 performance tuning questions Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: PostgreSQL 8.4 performance tuning questions Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.4 performance tuning questions "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: PostgreSQL 8.4 performance tuning questions Rauan Maemirov <rauan@maemirov.com>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.4 performance tuning questions Greg Stark <gsstark@mit.edu>
Re: PostgreSQL 8.4 performance tuning questions Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.4 performance tuning questions PFC <lists@peufeu.com>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.4 performance tuning questions Merlin Moncure <mmoncure@gmail.com>
Re: PostgreSQL 8.4 performance tuning questions PFC <lists@peufeu.com>
Re: PostgreSQL 8.4 performance tuning questions Merlin Moncure <mmoncure@gmail.com>
Re: PostgreSQL 8.4 performance tuning questions Alvaro Herrera <alvherre@commandprompt.com>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.4 performance tuning questions Merlin Moncure <mmoncure@gmail.com>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions PFC <lists@peufeu.com>
Re: PostgreSQL 8.4 performance tuning questions "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: PostgreSQL 8.4 performance tuning questions "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: PostgreSQL 8.4 performance tuning questions Arjen van der Meijden <acmmailing@tweakers.net>
Re: PostgreSQL 8.4 performance tuning questions Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.4 performance tuning questions Scott Carey <scott@richrelevance.com>
Re: PostgreSQL 8.4 performance tuning questions Rauan Maemirov <rauan@maemirov.com>
Re: PostgreSQL 8.4 performance tuning questions Merlin Moncure <mmoncure@gmail.com>
Re: PostgreSQL 8.4 performance tuning questions Greg Smith <gsmith@gregsmith.com>
Re: PostgreSQL 8.4 performance tuning questions Scott Marlowe <scott.marlowe@gmail.com>
Re: PostgreSQL 8.4 performance tuning questions Rauan Maemirov <rauan@maemirov.com>
On Thu, Jul 30, 2009 at 10:10 PM, Greg Smith wrote:
> On Thu, 30 Jul 2009, Rauan Maemirov wrote:
>
>> maintenance_work_mem = 1GB
>> work_mem = 192MB
>> shared_buffers = 7680MB
>> max_connections = 80
>> My box is Nehalem 2xQuad 2.8 with RAM 32Gb
>
> While it looks like you sorted out your issue downthread, I wanted to point
> out that your setting for work_mem could be dangerously high here and
> contribute to problems

The real danger here is that you can set up your pg server to fail
ONLY under heavy load, when it runs out of memory and goes into a swap
storm.  So, without proper load testing and profiling, you may not
know you're headed for danger until your server goes unresponsive
midday at the most critical of times.  And restarting it will just
lead to the same failure again as the clients all reconnect and pummel
your server.

Meanwhile, going from 192 to 16MB might result in a total slowdown
measured in a fraction of a percentage overall, and prevent this kind
of failure.

If there's one single request you can justify big work_mem for then
set it for just that one query.  It's not uncommon to have a reporting
user limited to a few connections and with "alter user reportinguser
set work_mem='512MB';" so that it can run fast but not deplete your
server's resources on accident during heavy load.
В списке pgsql-performance по дате отправления
От: Greg Smith
Дата:
Сообщение: Re: Performance 8.4.0
От: Stefan Kaltenbrunner
Дата:
FAQ