the number of file descriptors when using POSIX semaphore

Поиск
Список
Период
Сортировка
От flyusa2010 fly
Тема the number of file descriptors when using POSIX semaphore
Дата
Msg-id AANLkTimYkJLjyyWJY4XE6VLDDPn7nqGihHC0fRtmsj+m@mail.gmail.com
обсуждение исходный текст
Ответы Re: the number of file descriptors when using POSIX semaphore  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Hi, folks,

in src/template/darwin:

# Select appropriate semaphore support. Darwin 6.0 (Mac OS X 10.2) and up
# support System V semaphores; before that we have to use POSIX semaphores,
# which are less good for our purposes because they eat a file descriptor
# per backend per max_connection slot.

To my understanding, the number of descriptors created by POSIX semaphores would be # of actual clients times max_connection. 
However, I monitor the number of open files using sysctl, and I find that kern.num_files doesn't match the result calculated by the formula that is inferred by me...

So, what would the number of file descriptors be, when using POSIX semaphore?  

Thanks!

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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: We really ought to do something about O_DIRECT and data=journalled on ext4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: WIP patch for parallel pg_dump