Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: max client limit in pgbench - Mailing list pgsql-hackers

From Tom Lane
Subject Re: max client limit in pgbench
Date
Msg-id [email protected]
Whole thread Raw
In response to max client limit in pgbench  (Tatsuo Ishii <[email protected]>)
List pgsql-hackers
Tatsuo Ishii <[email protected]> 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 by date:

Previous
From: Tatsuo Ishii
Date:
Subject: max client limit in pgbench
Next
From: Andrew Dunstan
Date:
Subject: buildfarm interruption