[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MAX_CONNECTION & Hard Limit
On Mon, Mar 06, 2000 at 04:44:16PM +0100, Oreste Dimaggio wrote:
> Hi,
>
> I'm trying to get ircd working with more than 1024 MAX_CONNECTIONS.
> Ircd does not start... and shows following error:
>
> [root@irc i586-pc-linux-gnu]# ./ircd
> ircd fd table is too big
> Hard Limit: 1024 IRC max: 5126
> Fix MAXCONNECTIONS and recompile.
>From the source:
if (!getrlimit(RLIMIT_FD_MAX, &limit))
{
if (limit.rlim_max < MAXCONNECTIONS)
{
(void)fprintf(stderr, "ircd fd table is too big\n");
(void)fprintf(stderr, "Hard Limit: %d IRC max: %d\n",
(int) limit.rlim_max, MAXCONNECTIONS);
(void)fprintf(stderr,
"Fix MAXCONNECTIONS and recompile.\n");
exit(-1);
}
So this is something you should either fix with setrlimit (ulimit), but
that doesn't seem to work for you. Check that it atleast is set like you
wanted.
Linux 2.2 shouldn't have a problem with more then 1024 connection, but for
2.0 you needed a patch ...
It could be that you need to change some headerfiles (and recompile
kernel?) before it really works.
I also suggest you make sure that you use poll() if you use linux 2.2.
(#define USE_POLL 1 in setup.h), but you probaly are already.
Q