Solaris shared_buffers anomaly?

Поиск
Список
Период
Сортировка
От Mischa Sandberg
Тема Solaris shared_buffers anomaly?
Дата
Msg-id 448F3A6E.6080908@ca.sophos.com
обсуждение исходный текст
Ответ на Re: 64-bit vs 32-bit performance ... backwards?  ("Jim C. Nasby" <jnasby@pervasive.com>)
Ответы Re: Solaris shared_buffers anomaly?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Solaris shared_buffers anomaly?  ("Jim C. Nasby" <jnasby@pervasive.com>)
Re: Solaris shared_buffers anomaly?  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Solaris shared_buffers anomaly?  (Mark Kirkwood <markir@paradise.net.nz>)
Список pgsql-performance
Jim C. Nasby wrote:
...
> Actually, in 8.1.x I've seen some big wins from greatly increasing the
> amount of shared_buffers, even as high as 50% of memory, thanks to the
> changes made to the buffer management code. ...

Anyone else run into a gotcha that one of our customers ran into?
PG 7.4.8 running on Solaris 2.6, USparc w 4GB RAM.
Usually about 50 active backends.
(No reason to believe this wouldn't apply to 8.x).

Initially shared_buffers were set to 1000 (8MB).
Then, we moved all apps but the database server off the box.

Raised shared_buffers to 2000 (16MB).
Modest improvement in some frequent repeated queries.

Raised shared_buffers to 16000 (128MB).
DB server dropped to a CRAWL.

vmstat showed that it was swapping like crazy.
Dropped shared_buffers back down again.
Swapping stopped.

Stared at "ps u" a lot, and realized that the shm seg appeared to
be counted as part of the resident set (RSS).
Theory was that the kernel was reading the numbers the same way,
and swapping out resident sets, since they obviously wouldn't
all fit in RAM :-)

Anyone from Sun reading this list, willing to offer an opinion?

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: scaling up postgres
Следующее
От: "John Vincent"
Дата:
Сообщение: Re: scaling up postgres