Re: FreeBSD 7 needing to allocate lots of shared memory

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: FreeBSD 7 needing to allocate lots of shared memory
Дата
Msg-id 20081114130806.GD12777@svana.org
обсуждение исходный текст
Ответ на FreeBSD 7 needing to allocate lots of shared memory  (Christiaan Willemsen <cwillemsen@technocon.com>)
Ответы Re: FreeBSD 7 needing to allocate lots of shared memory  (Christiaan Willemsen <cwillemsen@technocon.com>)
Список pgsql-general
On Fri, Nov 14, 2008 at 01:56:31PM +0100, Christiaan Willemsen wrote:
> I'm trying to get postgressql running on FreeBSD with 64 GB of memory.
> Postgres will the the only thing running, so I want it to use as much
> memory as needed.
>
> So I increased shared_memory to 50GB, and also set:

Umm, do you have a specific reason for not allowing the OS to cache
your DB? Is it actually a 64-bit machine you're running on?

> kern.ipc.shm_use_phys=1
> kern.ipc.semmap=512
> kern.ipc.shmall=65536
> kern.ipc.shmmax=68719476736

That shmall limits you to at most 256MB, maybe you want to change that
also?

I'd suggest making shared buffers at most a few GB and use the rest for
caching.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

Вложения

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: invalid byte sequence on restore
Следующее
От: "Phoenix Kiula"
Дата:
Сообщение: Re: Fwd: Tweaking PG (again)