From owner-freebsd-security Tue Jul 28 01:58:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA04212 for freebsd-security-outgoing; Tue, 28 Jul 1998 01:58:30 -0700 (PDT) (envelope-from owner-freebsd-security@FreeBSD.ORG) Received: from hoth.amu.edu.pl (nexus@hoth.amu.edu.pl [150.254.113.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA04203 for ; Tue, 28 Jul 1998 01:58:16 -0700 (PDT) (envelope-from nexus@hoth.amu.edu.pl) Received: from localhost (nexus@localhost) by hoth.amu.edu.pl (8.9.0/8.9.0) with SMTP id KAA16967; Tue, 28 Jul 1998 10:56:50 +0200 (CEST) Date: Tue, 28 Jul 1998 10:56:50 +0200 (CEST) From: Bohdan Horst To: Joao Paulo Campello cc: security@FreeBSD.ORG Subject: Re: FreeBSD Security How-to for your review. In-Reply-To: <3.0.5.32.19980728000808.007cb4f0@neoplanos.com.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 28 Jul 1998, Joao Paulo Campello wrote: > Hi all, > > I dunno if it's the correct list to ask for this kind of information, but... > > I once tried to compile an irc daemon in my old Linux, and when needed to > establish more than 256 simultaneuos connections I've got the error: > > "FD Table too big" > > I didn't find any kernel option in the RedHat kernel configuration to rise > the FD Table value... Now i've the same problem in my FreeBSD 2.2.6 > > Does anybody know which is the FD Table value in FreeBSD? Or even how to > change this?!?! FreeBSD 2.2.* /usr/src/sys/sys/types.h --------- /* * Select uses bit masks of file descriptors in longs. These macros * manipulate such bit fields (the filesystem macros use chars). * FD_SETSIZE may be defined by the user, but the default here should * be enough for most uses. */ #ifndef FD_SETSIZE #define FD_SETSIZE 256 #endif --------- change this to 1024 (or 2048) and ircd will work fine :) (tested on ircd with >800 users) p.s. FreeBSD 3.* -> #define FD_SETSIZE 1024 -- / irl:Bohdan 'Nexus' Horst | mailto:nexus@irc.pl | irc:Nexus \ {---------------------------^----------v----------^------------} \ http://www.physd.amu.edu.pl/~nexus/ | Instytut Fizyki UAM / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe security" in the body of the message