number of semaphores and semaphore sets

Поиск
Список
Период
Сортировка
От Anton Yuzhaninov
Тема number of semaphores and semaphore sets
Дата
Msg-id 4D877738.7000609@citrin.ru
обсуждение исходный текст
Ответы Re: number of semaphores and semaphore sets  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-docs
This page:
http://www.postgresql.org/docs/9.0/interactive/kernel-resources.html

has formula:
ceil((max_connections + autovacuum_max_workers) / 16)

for number of semaphore sets (identifiers).

It seems to be wrong (outdated).

Correct formula seems to be

ceil((max_connections + autovacuum_max_workers + 4) / 16)

Semaphore sets created in src/backend/storage/lmgr/proc.c:
1. MaxConnections
2. autovacuum_max_workers + 1
3. NUM_AUXILIARY_PROCS (currently 3)

--
  Anton Yuzhaninov

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Add strftime escapes to Log config
Следующее
От: Leslie S Satenstein
Дата:
Сообщение: Re: 9.1 release notes corrections