[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ircd (was: FD limit problem)



At 04:53 AM 1/3/99 , Tore Glaerum wrote the following message:
>Someone told me to increase maxuers, in the kernel config file..
>I increased it from 16 to 256
>Before compile: was kern.maxfiles 1172
>after compile: was kern.maxfiles 13196
What is your hard limit for open files per user now?

>Im compiling ircd, with fdlimit 4096, but... it wont start.
>it says: hard fdlimit: 1024
>
>So, do I need to change the hard fdlimit in some files in the kernel
>source?

Check config.h in <nachine-arch> directory eg. sparc-unknown-openbsd2.4.
There is a define MAXCONNECTIONS  that limits max connections to 1024.
Raise it and you'll be fine unless you forgot to also raise FD_SETSIZE -
put something like -DFD_SETSIZE=8192 to CFLAGS in Makefile. FD_SETSIZE MUST
be bigger than your MAXCONNECTIONS:

config.h:# if (MAXCONNECTIONS > FD_SETSIZE)
config.h:error FD_SETSIZE must be bigger than MAXCONNECTIONS 

>Can anyone help me?
Btw: part of this was discussed last november on openbsd-tech or -misc.

Tomaz
----
Tomaz Borstnar <tomaz.borstnar@over.net>
"Love is the answer to the final question you ask" - Unknown