Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Matthias Dolder <matthias@zuo.dec.com>
Subject: Re: Digital Unix, "Too many open files" is there a system parameter to increase?
Date: 1998/03/16	[thread overview]
Message-ID: <350D1CD7.8B6E2479@zuo.dec.com> (raw)
In-Reply-To: 35085C63.3F54@pop.agri.ch




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...





      reply	other threads:[~1998-03-16  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-12  5:00 Digital Unix, "Too many open files" is there a system parameter to increase? paul.yee
1998-03-12  5:00 ` Peter Mueri
1998-03-16  5:00   ` Matthias Dolder [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox