Increasing OPEN_MAX in INTERIX (246424)
The information in this article applies to:
- Interix 2.2.1
- Interix 2.2.2
- Interix 2.2.3
- Interix 2.2.4
This article was previously published under Q246424 SUMMARY
As shipped, INTERIX 2.2 has a limit of 32 open file descriptors per process (not per user ID; the sysconf() man page is wrong and will be corrected in the next release). For many applications, a limit of 32 file descriptors is not enough.
There is an undocumented way to increase the number of open file descriptors per process. The maximum limit in INTERIX 2.2 is 400 file descriptors per process. While the number of open files may increase in a future INTERIX release, the registry mechanism described here is not supported.
The following describes the requirements and risks of changing the limit of open file descriptors: - Will require you to compile some existing INTERIX applications.
- Will cause some problems with X11 programs. The X libraries do their own manipulation of file descriptors, and it is not possible to fix these.
- May cause problems with your shells and with other INTERIX utilities. An increase in the open file descriptor limit may cause several INTERIX 2.2 utilities (for example, tcsh, vi, and ksh) to have problems, but only if these utilities try to keep open more than 32 files at once. Although this is possible, it is very unlikely to occur.
Make this change only if it is necessary for your applications. The current value is 32 file descriptors. You can retrieve this number from the system in several ways: - From the command line, you can use the getconf utility: getconf OPEN_MAX
- You can use the value of OPEN_MAX in the file. This constant is set to the value 32 in .
- You can use the sysconf(_SC_OPEN_MAX) call. This will return the current system value, even if it has been changed.
Modification Type: | Major | Last Reviewed: | 7/31/2001 |
---|
Keywords: | kbinfo KB246424 |
---|
|