Bug 17154

Summary: need to raise file descriptor limit, its 1024 now. i did sysctl but cant get FD_SETSIZE to raise
Product: Base System Reporter: abunjami <abunjami>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-RELEASE   
Hardware: Any   
OS: Any   

Description abunjami 2000-03-03 21:00:01 UTC
need to raise fd limit

Fix: 

sysctl can raise some limits
but some are read only such as FD_SETSIZE
Comment 1 cpiazza freebsd_committer freebsd_triage 2000-03-04 22:54:45 UTC
Responsible Changed
From-To: freebsd-ports->freebsd-bugs

Misfiled PR 
Comment 2 Alfred Perlstein freebsd_committer freebsd_triage 2000-06-06 10:19:56 UTC
State Changed
From-To: open->closed

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.