Operating System - HP-UX
1842193 Members
2494 Online
110188 Solutions
New Discussion

Using more than 2048 file descriptors

 
Andrew Caballes
Occasional Contributor

Using more than 2048 file descriptors

The system I am using is an HP B9000
running HPUX11.00. I am in need to use/open
at least 3000 file descriptors. When I checked
the SAM kernel parameters, the maximum is
set at 2048. Is there a way to adjust this higher than that or a workaround?

Thanks!!!
2 REPLIES 2
Alex Glennie
Honored Contributor

Re: Using more than 2048 file descriptors

Not possiible I suspect by SAM but fyi :

(1) http://docs.hp.com
(2) HP-UX 10.* release documentation
(3) do a search on USE_BIG_FDS
(4) Look under 60K file descriptors
There is documentation on this _ please note that it says:
Use of this new feature is not compatible with all libraries. Users need to review the libraries used by their application to determine if they can use this feature. See the section "Impacts" below formore information.

Also See ITRC DOC : UNX1010203 : How to use 60K file descriptors?

Using sybase by anychance ?

Graham Masters
New Member

Re: Using more than 2048 file descriptors

The HP-UX 11.00 file descriptor limit is 60,000. I expect the problem is due to a lower limit in a config file that SAM reads. Try the following as su:

1) vi /usr/conf/master.d/core-hpux

2) search for:
*range maxfiles<=4096
*range maxfiles>=30
*range maxfiles_lim<=4096
*range maxfiles_lim>=30

3) Change this to
*range maxfiles<=60000
*range maxfiles>=30
*range maxfiles_lim<=60000
*range maxfiles_lim>=30

You should now be able to use SAM to change both maxfiles_lim and maxfiles to your desired 3000

You do not say whether you're using 3rd party software or writing your own. If you're writing your own you need to take care with system calls such as select that use fixed width bitmaps, and by default assume <= 2048 file descriptors. Take a look at man select.

Good luck.