Re: Too many open files in nolb-l4-4 test

From: Wes Felter (wmf@austin.ibm.com)
Date: Mon Jun 17 2002 - 14:51:32 MDT


On Mon, 2002-06-17 at 14:23, Alex Rousskov wrote:
> > or is my system misconfigured?
>
> Most likely. You should start by using "--verb_lvl 10" command line
> option with polyclt or polysrv and checking console logs for
> message(s) about file descriptors:
> 000.02| FDs: 16384 out of 16384 FDs can be used; safeguard limit: 15878
> All relevant messages should appear before Polygraph agents are
> started.
>
> Also, make sure you rebuild Polygraph from scratch when you change any
> of the system-wide settings such as the number of available
> descriptors. When you do rebuild, make sure that ./configure output
> shows the desired number of available descriptors.
> make distclean
> ./configure
> make

I didn't realize that the fd limit was compiled in; I had been compiling
as a normal user with a low limit. I recompiled with a higher limit, but
the safeguard limit hasn't changed.

Then I was getting this error:

PolyApp.cc:625: warning: getrlimit(2) system call reports 32768 file
descriptors while FD_SETSIZE #defines only 1024; using lower value.

So I changed the definition in /usr/include/bits/types.h and it works.

-- 
Wes Felter
System Software Department
IBM Austin Research Lab
11400 Burnet Rd., Austin, TX 78758
Tel 512-838-7933



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