*BSD News Article 88617


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!phaedrus.kralizec.net.au!news.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!newsfeeds.sol.net!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!usenet
From: ghudson@mit.edu (Greg Hudson)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: Ouch!  (NetBSD 1.2 select() only allows for 256 descriptors)
Date: 08 Feb 1997 01:45:43 -0500
Organization: Massachusetts Institute of Technology
Lines: 13
Sender: ghudson@the-light-fantastic.MIT.EDU
Message-ID: <x7d914z7q3s.fsf@the-light-fantastic.MIT.EDU>
References: <VIXIE.97Feb7202811@wisdom.vix.com>
NNTP-Posting-Host: the-light-fantastic.mit.edu
In-reply-to: vixie@vix.com's message of 08 Feb 1997 04:28:11 GMT
X-Newsreader: Gnus v5.1
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.netbsd.misc:5322

> Has anybody given any thought to a little creative use of malloc()
> here?

In -current, you don't have to recompile your kernel to use more file
descriptors with select(), just your application.  The kernel will
malloc space if you feed it an nfds higher than the kernel's value of
FD_SETSIZE.

Also in -current, there is a poll(), and libc uses it.  We like
poll().  We recommend you use it in the long run (obviously not for
1.2, though).

So yes, the problem has been noticed and addressed.