SUMMARY:Max number of file descriptors per process.

From: Ashish Pant (Ashish.Pant@ska.com)
Date: Wed Jul 03 1996 - 11:32:14 CDT


Thanks to the following

Pek Chan, TEOH <pcteoh@formis.bass.com.my>
simes@tcp.co.uk <simes@tcp.co.uk>
Pierre Sidler <t015218@et.swissbank.com>
Richard Aures <richard.aures@erlangen.netsurf.de>

The most complete answer came from Richard Aures
<richard.aures@erlangen.netsurf.de>

He wrote:

SYNOPSIS:
  How to increase the number of files a process can open

DETAIL DESCRIPTION:

How to increase the number of files a process can open.

SOLUTION SUMMARY:

1. ulimit -n 1024 for /bin/sh and /bin/ksh users

2. limit descriptors 1024 for csh users

3. Alternatively for all users, one can use adb and write directly
   to the system rlims structure;

 # adb -w -k /kernel/unix /dev/mem
  rlimits+28?W 400 # this is the max value for
                                  Solaris 2.3
  rlimtts+28/W 400

There is a hard limit of 1024 in the kernel.
--------------------------------------------

Note 2.4 limit is changed by use of the /etc/system file.
 entry is:
 rlim_fd_max.

regards
Ashish



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:03 CDT