From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,df30182acab0236a X-Google-Attributes: gidfee84,public From: Matthias Dolder Subject: Re: Digital Unix, "Too many open files" is there a system parameter to increase? Date: 1998/03/16 Message-ID: <350D1CD7.8B6E2479@zuo.dec.com>#1/1 X-Deja-AN: 334552033 Content-Transfer-Encoding: 7bit References: <6e9bqc$qp2$1@nnrp1.dejanews.com> <35085C63.3F54@pop.agri.ch> Mime-Version: 1.0 Reply-To: matthias*****zuo.dec.com Content-Type: text/plain; charset=us-ascii Organization: Digital Newsgroups: comp.unix.osf.osf1 Peter Mueri wrote: > See param.c for details. The conclusion is to adapt maxusers and > especially maxproc (maybe maxuprc too) and recompile the kernel. On the > built image, check nfiles: > > cd / > dbx vmunix > print nfil if using v4.x then there is no need to edit param.c to change maxusers et al. If you have motif capabilities you can use dxkerneltuner to change required params, if not you have to manually modify /etc/sysconfigtab. No kernel rebuild is required, reboot will do or in the case of max-vnodes it's fully dynamic. Also as of 4.0d, the params open-max-soft and open-max-hard plus max-vnodes are the ones to look at. See here excerpts from the doc which is publicly accessible at http://www.unix.digital.com/faqs/publications/pub_page/V40D_DOCS.HTM open-max-hard (open_max_hard) Hard limit for the number of file descriptors for each process. If the number of file descriptors reaches the value of the open-max-hard attribute or higher, the process is stopped. Use the getdtablesize system call to obtain the total number of file descriptors in a process' descriptor table. Default value: 4096 open-max-soft (open_max_soft) Specifies the soft limit for the number of file descriptors for a process. When the open-max-soft limit is reached, a warning message is issued. Use the getdtablesize system call to obtain the total number of file descriptors in a process' descriptor table. A process can increase its soft limit up to its hard limit (open-max-hard) by using the setrlimit system call. Default value: 4096 max-vnodes (max_vnodes) Maximum number of vnodes (open files) on a system. The minimum value is specified by the nvnode attribute. The maximum value is the number of vnodes that 5 percent of the available memory can contain. Increasing the value of the max-vnodes attribute allows more vnodes on a system, which may improve performance if your applications or users create a large number of open files. However, supporting more vnodes uses additional memory. You can modify this attribute at run time. Default value: 1000 (for 24-MB systems); the maximum value (for 32-MB or larger systems) rgds M.Dolder ------------------------------------------------- Digital Equipment Corp., Switzerland Matthias Dolder dolder'@'digital.com ...speaking for myself...