From nobody@FreeBSD.org  Fri Mar  3 12:53:57 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 2878137B6AB
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 Mar 2000 12:53:57 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id MAA61056;
	Fri, 3 Mar 2000 12:53:57 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200003032053.MAA61056@freefall.freebsd.org>
Date: Fri, 3 Mar 2000 12:53:57 -0800 (PST)
From: abunjami@columbus.rr.com
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: need to raise file descriptor limit, its 1024 now. i did sysctl but cant get FD_SETSIZE to raise
X-Send-Pr-Version: www-1.0

>Number:         17154
>Category:       kern
>Synopsis:       need to raise file descriptor limit, its 1024 now. i did sysctl but cant get FD_SETSIZE to raise
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar  3 13:00:01 PST 2000
>Closed-Date:    Tue Jun 6 02:19:56 PDT 2000
>Last-Modified:  Tue Jun 06 02:22:08 PDT 2000
>Originator:     andry
>Release:        FreeBSD 3.4-RELEASE
>Organization:
none
>Environment:
FreeBSD mac.majordemo.com 3.4-RELEASE FreeBSD 3.4-RELEASE #0: Thu Dec 30 02:57:15 GMT 1999     jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC  i586
>Description:
need to raise fd limit

>How-To-Repeat:

>Fix:
sysctl can raise some limits
but some are read only such as FD_SETSIZE

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->freebsd-bugs  
Responsible-Changed-By: cpiazza 
Responsible-Changed-When: Sat Mar 4 14:54:45 PST 2000 
Responsible-Changed-Why:  
Misfiled PR 
State-Changed-From-To: open->closed 
State-Changed-By: alfred 
State-Changed-When: Tue Jun 6 02:19:56 PDT 2000 
State-Changed-Why:  
FD_SETSIZE can be defined at compile time of userland programs, 
from 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      1024 
#endif 

If the user is speaking of the kernel max file descriptors this is an 
unfortunate limitation, but can be worked around via boot time config 
and/or kernel recompiling. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=17154 
>Unformatted:
