*BSD News Article 60496


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!news.cis.okstate.edu!news.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!uwm.edu!newsfeed.internetmci.com!howland.reston.ans.net!usc!newshub.cts.com!usenet
From: jcurtis@cts.com (Jay Curtis)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: More than 256 open files with select() ?
Date: Wed, 31 Jan 1996 06:03:37 GMT
Organization: CTS Network Services
Lines: 28
Message-ID: <4en03h$qcf@news3.cts.com>
NNTP-Posting-Host: snnark.cts.com

Okay, I've gone through the mailing list archives, read the faq and
the Lizard book.  There are lots of references to using more than 256
open file handles per process with select.  None of them has helped me
get this to work.  

I have tried several things in an attempt to make this work.  

I tried increasing the value os FD_SETSIZE in the source code for the
program I was compiling from the default of 256 to 512.

the program compiled fine but died on the 257 file open.

Tried increasing the value of FD_SETSIZE in /usr/include/sys/types.h
and recompiling the program.  No joy.

Tried setting :
options		MAX_OPENFILES=512
in the Kernel and recompiling the kernel.  This broke portmap so the
NFS mounts would fail.  (Don't know if this would allow the program to
work as I couldn't run it without the NFS mounted drives.)


Someone has got to have made this work by now!  Any ideas?  

--Jay
jcurtis@cts.com