max_conn too small, same bahaviour on linux

From: Torsten Valentin (winsock2@musiker.de)
Date: Tue Sep 17 2002 - 15:51:21 CEST


> I've compiled pen on OpenBSD3.1 with filedescriptors set to 1000
> (./configure --with-daemon --with-poll --with-fd-setsize=1000). I set
> ulimit to 1000 (ulimit -n 1000) and ran pen. It still tells me it can
> handle 256 connections only:
>
> server1:/tmp# echo "conn_max"|nc vmobsd31 26176
> 256
>
> Why's that?

This is not an OpenBSD issue, I tried on Linux (Kernel 2.4.19):

server1:/tmp/pen-0.9.5# ulimit -n 20000
server1:/tmp/pen-0.9.5# ulimit -n
20000
server1:/tmp/pen-0.9.5# ./configure --with-poll --with-daemon
--with-fd-setsize=20000
server1:/tmp/pen-0.9.5# make
server1:/tmp/pen-0.9.5# ./pen -l /var/log/pen.log -C 26176 server1:26175
server2:26175 server3:26175
server1:/tmp/pen-0.9.5# echo "conn_max"|nc server1 26176
256
server1:/tmp/pen-0.9.5# cat /proc/version
Linux version 2.4.19 (root@server1) (gcc version 2.95.4 20011002 (Debian
prerelease)) #13 Wed Aug 28 10:01:53 CEST 2002
server1:/tmp/pen-0.9.5#

Why ist his so? What can I do to increase this number?

T.



This archive was generated by hypermail 2.1.2 : Tue Sep 17 2002 - 16:03:55 CEST