Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Digital Unix, "Too many open files" is there a system parameter to increase?
@ 1998-03-12  5:00 paul.yee
  1998-03-12  5:00 ` Peter Mueri
  0 siblings, 1 reply; 3+ messages in thread
From: paul.yee @ 1998-03-12  5:00 UTC (permalink / raw)



An application is generating an error "Too many open files" in the
application log.  Is there a system parameter that can be increased to avoid
this problem.  In HP Unix it is called "nfiles".

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Digital Unix, "Too many open files" is there a system parameter to increase?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Mueri @ 1998-03-12  5:00 UTC (permalink / raw)



paul.yee@heroix.com wrote:
> 
> An application is generating an error "Too many open files" in the
> application log.  Is there a system parameter that can be increased to avoid
> this problem.  In HP Unix it is called "nfiles".

So is it in DU. However nfiles is determined from macproc and maxusers
parameters in config.
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 nfile


good luck
	Peter



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Digital Unix, "Too many open files" is there a system parameter to increase?
  1998-03-12  5:00 ` Peter Mueri
@ 1998-03-16  5:00   ` Matthias Dolder
  0 siblings, 0 replies; 3+ messages in thread
From: Matthias Dolder @ 1998-03-16  5:00 UTC (permalink / raw)





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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-03-16  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox