Re: how much ram do i give postgres?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: how much ram do i give postgres?
Дата
Msg-id 20046.1098222136@sss.pgh.pa.us
обсуждение исходный текст
Ответ на how much ram do i give postgres?  (Josh Close <narshe@gmail.com>)
Ответы Re: how much ram do i give postgres?
Список pgsql-general
Josh Close <narshe@gmail.com> writes:
> I know this is kinda a debate, but how much ram do I give postgres?
> I've seen many places say around 10-15% or some say 25%....... If all
> this server is doing is running postgres, why can't I give it 75%+?
> Should the limit be as much as possible as long as the server doesn't
> use any swap?

The short answer is no; the sweet spot for shared_buffers is usually on
the order of 10000 buffers, and trying to go for "75% of RAM" isn't
going to do anything except hurt.  For the long answer see the
pgsql-performance list archives.

            regards, tom lane

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

Предыдущее
От: Scott Frankel
Дата:
Сообщение: Re: attn.: psycopg users -- simple question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How do I recover from>> pg_xlog/0000000000000000 (log file 0, segment 0) failed: No such file or directory