Re: max client limit in pgbench

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: max client limit in pgbench
Дата
Msg-id 26458.1188011102@sss.pgh.pa.us
обсуждение исходный текст
Ответ на max client limit in pgbench  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers
Tatsuo Ishii <ishii@postgresql.org> writes:
> This is used for calculating the upper limit of -c option. However
> actual limit is coming from the number of descriptors that select(2)
> can watch (besides the number of file descriptors allowed by the
> kernal. This is different story though, I think). So it seems the line
> would be better looking at FD_SETSIZE in select.h.

This seems reasonable, but surely it needs to be FD_SETSIZE less a bit,
because stdin/stdout/etc eat FD numbers too.  Maybe
#define MAXCLIENTS     (FD_SETSIZE - 10)
        regards, tom lane


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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: max client limit in pgbench
Следующее
От: Andrew Dunstan
Дата:
Сообщение: buildfarm interruption