Re: Increasing Shared Memory size, in order to increase shared buffer size

Поиск
Список
Период
Сортировка
От Sean Chittenden
Тема Re: Increasing Shared Memory size, in order to increase shared buffer size
Дата
Msg-id 20030522095307.GH71079@perrin.int.nxad.com
обсуждение исходный текст
Ответ на Increasing Shared Memory size, in order to increase shared buffer size  (Yusuf <yusuf0478@netscape.net>)
Список pgsql-admin
> I want to increase the buffer size on my postgresql installation, in
> order to improve the performance.
>
> Now, when I execute top, on my FreeBSD system, the memory part shows:
>
> Mem: 26M Active, 1062M Inact, 146M Wired, 199M Buf, 776M Free
> Swap: 4080M Total, 8K Used, 4080M Free
>
> The size of the database in PGDATA/base is 415 MB. I want to increase
> the shared buffer size so that I could avoid swap pagein activities.
>
> What should I increase the shared memory size of FreeBSD to be?

Have you recompiled your kernel with the values suggested in
/usr/local/pgsql/post-install-notes ?

> What would be a good value for the shared buffer size?

See the archives, there's plenty of discussion on the topic.

Be sure that you're not trying to prevent paging of inactive pages to
disk: that isn't harmful and helps performance.  FreeBSD is relatively
aggressive about paging inactive pages and isn't harmful as it frees up
additional ram for other processes/PostgreSQL.  -sc

--
Sean Chittenden

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

Предыдущее
От: "Josh Goldberg"
Дата:
Сообщение: Re: user defined function call problem after upgrade 7.2.3 -> 7.3.2
Следующее
От: Thierry Missimilly
Дата:
Сообщение: Re: Full vacuuming of BIG tables takes too long