Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.internetmci.com!EU.net!Belgium.EU.net!chaos.kulnet.kuleuven.ac.be!news.vub.ac.be!orca!mcoevoet From: mcoevoet@vub.ac.be (Frederik Bultot) Newsgroups: comp.unix.bsd.netbsd.misc Subject: Re: How to run a process in NetBSD with more than 20 sockets Date: 11 Jan 1996 12:56:53 GMT Organization: Brussels Free Universities VUB/ULB Lines: 26 Message-ID: <4d31el$svk@rc1.vub.ac.be> References: <4cqk7e$1gi@nntp.Stanford.EDU> NNTP-Posting-Host: orcae.vub.ac.be. X-Newsreader: TIN [version 1.2 PL2] Peter Tam (pct@lyra.stanford.edu) wrote: : There is a limit of file descriptors table size in NetBSD, it is 20 I guess. : I think by getfdtablesize() I can get it. The problem is I would like to : run up at least 100 sockets/file descriptors in one process, so that it : can serve at least a hundred tcp connections. : I tried, but the software crashed with "Broken Pipe" after the 19-22 sockets : get connected. That is not going to help my requirements. : Anyone knows where in kernel code that spec the file descriptor table size, : and may be by hacking it I can get NetBSD to do the thing I want it to do. Go in the /usr/include dir, there you'll find (probably) in stdio.h #define _NFILE 100 /* initial number of streams */ #define FOPEN_MAX _NFILE (This is from an sgi system, but they're all the same, except when you expect too much similarity.) You simply adapt this number to your wishes. Marc