Re: cache whole data in RAM

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: cache whole data in RAM
Дата
Msg-id 401FA16E.4040202@frodo.hserus.net
обсуждение исходный текст
Ответ на cache whole data in RAM  (David Teran <david.teran@cluster9.com>)
Список pgsql-performance
David Teran wrote:
> we are trying to speed up a database which has about 3 GB of data. The
> server has 8 GB RAM and we wonder how we can ensure that the whole DB is
> read into RAM. We hope that this will speed up some queries.

Neither the DBa or postgresql has to do anything about it. Usually OS caches the
data  in it's buffer cache. That is certainly true for linux and freeBSD does
that. Most of the unices certainly do. To my knowledge linux is most aggresive
one at that..(Rather over aggressive..)

Make sure that you size effective cache size correctly. It helps postgresql
planner at times..

  HTH

  Shridhar

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

Предыдущее
От: David Teran
Дата:
Сообщение: cache whole data in RAM
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: cache whole data in RAM