![]() |
By using the extended FILE facility in Solaris in order to lift the open files limit from the default 256. |
![]() |
The extended FILE facility allows 32-bit processes to use any valid file descriptor with the standard I/O C library functions. Historically, 32-bit applications have been limited to using the first 256 numerical file descriptors for use with standard I/O streams. By using the extended FILE facility this limitation is lifted. Any valid file descriptor can be used with standard I/O.
The extended FILE facility is enabled from the shell level before an application is launched. The file descriptor limit must also be raised. The syntax for raising the file descriptor limit (in bash/ksh/sh) is $ ulimit -n max_file_descriptors where max_file_descriptors is the maximum number of file descriptors desired. Sample declaration on a bash start script
#!/bin/bash ... export LD_PRELOAD_32= /usr/lib/extendedFILE .so.1 ulimit -n 1024 ...
* for C shell (csh), the syntax would be: Sample declaration on a csh start script
#!/bin/csh ... setenv LD_PRELOAD_32 /usr/lib/extendedFILE .so.1 limit descriptors 1024 ...
|
Comments
0 comments
Please sign in to leave a comment.