Re: more on Linux and filedescriptors

From: Martin Hamilton <martin@dont-contact.us>
Date: Wed, 13 Jan 1999 17:34:59 +0000

-----BEGIN PGP SIGNED MESSAGE-----

I think I've tracked down the bit in the Linux kernel which is biting
us - from the sys_setrlimit() function in kernel/sys.c:

        if (resource == RLIMIT_NOFILE) {
                if (new_rlim.rlim_cur > NR_OPEN || new_rlim.rlim_max > NR_OPEN)
                        return -EPERM;
        }

NR_OPEN is set by default to 1024 in <linux/fs.h>. Bummer!

I'm going to have a go at increasing this to see what happens, but
see <URL:http://www.tux.org/lkml/#s9-7>

Sayonara!

Martin

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBNpzZQNZdpXZXTSjhAQHh/wP+Oe936+Id1ybHJObblPr2VK9eq/oSezKs
CI/yKDZtMad6tntCnnm5mKgyVnyk2O/dr9aKh4iPb7sXLhPNcdmeudfmSnUNkQWB
Um8qcG3b5uQIsAPfcYCiqrz0u5O13Hf+hkBM2cLusJZHyMCuFh6ArzlEze57hxLj
SucPzsIMmVs=
=NwNB
-----END PGP SIGNATURE-----
Received on Tue Jul 29 2003 - 13:15:55 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:02 MST