Re: FD_LIMIT

Alex Rousskov <[email protected]>
Newsgroups gmane.comp.web.web-polygraph.user
Message-ID <[email protected]>
On Fri, 27 Jan 2006, [email protected] wrote:

> First important stats:
> 	Poly graph version: 2.8.1
> 	OS: Linux Fedora 4.0
> 	Kernel: (Custom): 2.6.14
>
> Ulimit -n shows 65536
>
> I changed the limits.conf file to have hard limit be 65536

OK.

> When I compile the polygraph the "./configure" says
> Default FD_SETSIZE value 1024
> Maximum number of filedescriptors we can open 65536

The first number (1024) is the problem if you are on Linux. Polygraph 
detects that your FD_SETSIZE value is 1024. On Linux, the applications 
cannot overwrite that and you get stuck with 1024 as a limit. Even 
though it is possible to open 65536 files, select(2) and perhaps other 
system calls may not be able to handle that many if your FD_SETSIZE 
value is 1024.

When you tune your Linux-based OS to have more filedescriptors, you 
need to make sure that FD_SETSIZE value in system headers files 
reflects your changes. Unfortunately, I am not qualified to give you 
step-by-step instructions on how to do that on Linux, but I suspect 
there are HOWTOs online and a few hints in this mailing list archive.

HTH,

Alex.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.