Re: FD_LIMIT

From: Alex Rousskov (rousskov@measurement-factory.com)
Date: Wed Feb 01 2006 - 17:11:22 MST


On Fri, 27 Jan 2006, MEDohojda@argentmortgage.com 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.



This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:29 MST