Re: How to find how much postgresql use the memory?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: How to find how much postgresql use the memory?
Дата
Msg-id dcc563d10901221207k42e73af5r30cea1a7b54a6820@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to find how much postgresql use the memory?  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Список pgsql-general
On Wed, Jan 21, 2009 at 10:15 AM, Albe Laurenz <laurenz.albe@wien.gv.at> wrote:
>
> Tom Lane suggested in
> http://archives.postgresql.org/pgsql-general/2004-02/msg00471.php
> that it might be better to set shared_buffers "relatively
> small" and let the filesystem cache do the buffering, so that's
> another way you can go. His advice is usually good.

Note that for transactional databases that are too large to fit the
dataset into memory (think a 16Gig machine running a 100G
transactional database) this is very true.  The shared_buffers seldom
get reused and you'll get faster throughput with lower shared_buffers.

In testing a 40Gig db on a 32Gig machine, I got the best pgbench
numbers with a shared_buffers setting in the hundreds of megs range.

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

Предыдущее
От: Stefan Murphy
Дата:
Сообщение: can't duplicate an error in a restored DB
Следующее
От: Vladimir Konrad
Дата:
Сообщение: Re: problem converting database to UTF-8