NR_OPEN (1024*1024)

NR_OPEN (1024*1024)

Post by Jerry O'Keef » Thu, 27 May 1999 04:00:00

Redhat 6.0 2.2.5-15 kernel sources have NR_OPEN defined as (1024*1024)
in fs.h. This appears to come from a file in kernel-2.2.5-15.src.rpm
fdset-2.2.4.diff. I cannot find this patch in any of the kernel sources
at LinuxHQ, 2.2.5 to 2.3.3. This patch makes it possible to open more
the present standard of 1024 file handles. I tried redefing NR_OPEN,
and FD_SETSIZE to larger sizes in 2.2.6-2.2.9, but this broke portmap
and which broke nfs.

So by question is, is this a RedHat only patch. and will it appear in
releases of Redhat kernels? or any new kernel?

 Thanks for any help


1. /proc/pid/fd/* and NR_OPEN=1024

On our main web server we need to adjust
NR_OPEN to 1024 in order to have apache
open all his log files.

(I tried to alter limits.h and fs.h)

My question is: can we safely do this or will
it corrupt internal kernel data structures ?

My concern is because some of the <fd> entries
in /proc/<webserver-PID>fd/* are not showing
up properly: all FDs above 256 !

Can anyone clarify ?


matthias Suencksen

2. GCC Hangs Linux ???? Know why?

3. Disk manager for >1024 HD, with 2 drives

4. DAC960 and I/O Bottleneck

5. Hard drive with more than 1024 cyl.

6. Dual nic (eepro100) problem?

7. HELP! cylinders > 1024 !!!

8. DHCP of Solaris Desktops?

9. Maxtor 7546AT HDD sectors: 1060 vs. 1024

10. Is the 1024 cyls "BIOS-limitation" actually a linux flaw?

11. 1024 cylinder problem

12. Cylinder number > 1024, how to lilo?

13. Logitech QuickCam Pro 4000 and SoundBlaster Live 1024 on Gentoo System