Re: Re: SOMAXCONN (was Re: Solaris source code)

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Ian Lance Taylor <ian(at)zembu(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: SOMAXCONN (was Re: Solaris source code)
Date: 2001-07-11 17:46:08
Message-ID: Pine.LNX.4.30.0107111944130.679-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> The other concern I had could be addressed by making the listen
> parameter be MIN(MaxBackends, PG_SOMAXCONN) where PG_SOMAXCONN
> is set in config.h --- but now we could make the default value
> really large, say 10000. The only reason to change it would be
> if you had a kernel that barfed on large listen() parameters.

We'll never find that out if we don't try it. If you're concerned about
cooperating with other listen()ing processes, set it to MaxBackends * 2,
if you're not, set it to INT_MAX and watch.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-07-11 18:15:25 iconv?
Previous Message Bruce Momjian 2001-07-11 17:43:54 Re: Re: [HACKERS] JDBC adaptor issue