maximum file descriptors not higher than 983
Alex Rousskov
rousskov at measurement-factory.com
Wed Dec 19 17:49:00 UTC 2007
On Wed, 2007-12-19 at 10:11 +0100, Marek Lewkowicz wrote:
> Hello Mathias,
>
> I got the same problem when I played with Polygraph installed on
> Debian4. For older kernel version (2.4) there was some trick to modify
> kernel headers to convince Polygraph for more file descriptors.
> Unfortunately I've found nothing for 2.6 kernels.
Here is what I do for Ubuntu 2.6.15-26-server:
1) Edit /etc/security/limits.conf:
* soft nofile 16384
* hard nofile 16384
2) If you compile Polygraph on this box, then
edit /usr/include/linux/posix_types.h and /usr/include/bits/typesizes.h
to #define __FD_SETSIZE as 16384
The above two steps were sufficient for me. I am not a Linux guru though
and YMMV. More information can be found at
http://bcr2.uwaterloo.ca/~brecht/servers/openfiles.html but it may be
outdated in places.
HTH,
Alex.
> Weiersmüller Mathias (KIPO 14) wrote:
> > I am trying in vain to increase the number of file descriptors that web polygraph uses:
> >
> > when starting polyctl, I get the following message:
> >
> > == snip ====
> > 000.01| FDs: 65535 out of 65535 FDs can be used; safeguard limit: 983
> > == snip ====
> >
> > => Why does the safeguard limit stay at such a low level?
> >
> > Additional information here:
> > ============================
> > Limits:
> > -------
> > ulimit -n => 8192
> > ulimit -Hn => 65535
> > cat /proc/sys/fs/file-max => 205300
> >
> > System information:
> > -------------------
> > OS: Ubuntu Linux, version: gutsy
> > Kernel: 2.6.22-14-server
> > g++ version: 4.1.3
> > CPU: Dual-Intel Xeon CPU 3.20GHz
> >
> > polygraph information:
> > ----------------------
> > version: 3.0.6
> > configured: with option: --without_ssl
> > => when running ./configure, these might (?) be the interesting lines:
> > checking for set_new_handler... no
> > checking Default FD_SETSIZE value... 1024
> > checking Maximum number of filedescriptors we can open... 65536
> >
> >
> > I am clueless. Are there other parameters to check/change?
> >
> > Thanks in advance for a hint!
> > BTW: web polygraph really rocks! Although I had a quick look on the application before, I just realized how powerful the whole suite is!
> >
> > Regards
> >
> > Mathias
> _______________________________________________
> Users mailing list
> Users at web-polygraph.org
> http://www.web-polygraph.org/mailman/listinfo/users
More information about the Users
mailing list