Re: performance tuning: shared_buffers, sort_mem; swap

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: performance tuning: shared_buffers, sort_mem; swap
Дата
Msg-id 200208131556.g7DFuH008873@candle.pha.pa.us
обсуждение исходный текст
Ответ на performance tuning: shared_buffers, sort_mem; swap  (Thomas O'Connell <tfo@monsterlabs.com>)
Ответы Re: performance tuning: shared_buffers, sort_mem; swap  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Thomas O'Connell wrote:
> so a while back, i think i recall a post from Bruce Momjian describing
> an optimum setup for shared_buffers at 25% of available physical memory
> and sort_mem at 4% of available physical memory.

Yes, that was the numebers to start with.

> the caveat was to watch for swap activity when these values were being
> set. so my question is, how much swapping is too much, and is there a
> way to determine whether postgres is the process causing the swapping?

Well, it doesn't really matter who is causing the swapping.  If you have
more of a load on your machine that RAM can hold, you are better off
reducing your PostgreSQL shared buffers.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Alberto González
Дата:
Сообщение: tuning postgresql
Следующее
От: "Nick Fankhauser"
Дата:
Сообщение: Re: Leftover processes on shutdown - Debian+JDBC