Re: Increase default effective_cache_size?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Increase default effective_cache_size?
Дата
Msg-id 11617.1159204037@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Increase default effective_cache_size?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Initdb does not currently make any attempt to discover the extent of 
> physical or virtual memory, it simply tries to start postgres with 
> certain shared_buffer settings, starting at 4000, and going down until 
> we get a success.

> max_fsm_pages is now fixed proportionally with shared_buffers, and I 
> guess we could do something similar with effective_cache_size, but since 
> IIRC this doesn't involve shared memory I'm inclined to agree with Tom 
> that it should just be fixed at some substantially higher level.

Right, the default shared_buffers doesn't have much of anything to do
with actual RAM size.  If the user has altered it, then it might (or
might not) ... but that doesn't help us for setting a default
effective_cache_size.

Barring objections, I'll change it to Josh Drake's suggestion of ~ 128Mb
(versus current 8Mb).
        regards, tom lane


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

Предыдущее
От: Stefan Kaltenbrunner
Дата:
Сообщение: Re: -HEAD planner issue wrt hash_joins on dbt3 ?
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: Release Notes: Major Changes in 8.2