Re: Recommended Initial Settings

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Recommended Initial Settings
Дата
Msg-id 20070223174356.GB19527@nasby.net
обсуждение исходный текст
Ответ на Re: Recommended Initial Settings  (Richard Huxton <dev@archonet.com>)
Список pgsql-performance
If you're doing much updating at all you'll also want to bump up
checkpoint_segments. I like setting checkpoint_warning just a bit under
checkpoint_timeout as a way to monitor how often you're checkpointing
due to running out of segments.

With a large shared_buffers you'll likely need to make the bgwriter more
aggressive as well (increase the max_pages numbers), though how
important that is depends on how much updating you're doing. If you see
periodic spikes in IO corresponding to checkpoints, that's an indication
bgwriter isn't doing a good enough job.

If everything ends up in memory, it might be good to decrease
random_page_cost to 1 or something close to it; though the database
should just rely on effective_cache to figure out that everything's in
memory.

If you're on pre-8.2, you'll want to cut all the autovacuum parameters
in half, if you're using it.
--
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Using the 8.2 autovacuum values with 8.1
Следующее
От: "msmbarabino@virgilio.it"
Дата:
Сообщение: Re: Very slow bytea data extraction