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

From Tom Lane
Subject Re: max client limit in pgbench
Date
Msg-id 26458.1188011102@sss.pgh.pa.us
Whole thread Raw
In response to max client limit in pgbench  (Tatsuo Ishii <ishii@postgresql.org>)
List 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 by date:

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