Re: Changing the default configuration (was Re:

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Changing the default configuration (was Re:
Дата
Msg-id 200302130236.h1D2ajh17527@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Changing the default configuration (was Re:  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Ответы Re: Changing the default configuration (was Re:  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Changing the default configuration (was Re:  (Curt Sampson <cjs@cynic.net>)
Список pgsql-hackers
Christopher Kings-Lynne wrote:
> > Seriously, I know Linux can change these on the fly, and I'm pretty sure 
> > Solaris can too.  I haven't played with BSD for a while so can't speak 
> > about that.  Anyone else know?
> 
> You cannot change SHMMAX on the fly on FreeBSD.

And part of the reason is because some/most BSD's map the page tables
into physical RAM (kernel space) rather than use some shared page table
mechanism.  This is good because it prevents the shared memory from
being swapped out (performance disaster).

It doesn't actually allocate RAM unless someone needs it, but it does
lock the shared memory into a specific fixed location for all processes.

The more flexible approach is to make shared memory act just like the
memory of a user process, and have other user processes share those page
tables, but that adds extra overhead and can cause the memory to behave
just like user memory (swapable).

--  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,
Pennsylvania19073
 


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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: log_duration
Следующее
От: "J. M. Brenner"
Дата:
Сообщение: Re: location of the configuration files