From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,631b3fd0e2761fa6 X-Google-Attributes: gidfee84,public From: mogul@actitis.pa.dec.com (Jeffrey Mogul) Subject: Re: Number of open files Date: 1998/02/06 Message-ID: <6bdpkr$opo@usenet.pa.dec.com>#1/1 X-Deja-AN: 322489690 References: <886689843.26064.0.nnrp-01.c246a7b2@news.demon.co.uk> Organization: DEC Western Research Newsgroups: comp.unix.osf.osf1 In article <886689843.26064.0.nnrp-01.c246a7b2@news.demon.co.uk>, "Eric Le Donn�" writes: |> Does anybody know what is the kernel variable that describe the maximum |> number of open files, in Digital Unix ??? |> |> How can this variable be changed ? This is documented in the "System Tuning and Performance Management" manual, in Appendix B (Configuration Attribute Definitions), under "Process Subsystem Attributes": open-max-hard (open_max_hard) open-max-soft (open_max_soft) The number of per-process file descriptors. Use the getdtablesize system call to obtain the current limit. The value of open_max_soft is the default per-process limit. A process can increase its soft limit up to its hard limit using setrlimit. The default hard and soft limits must be at least 64, and less than or equal to OPEN_MAX_SYSTEM in param.h. Default value: 4096 (for both attributes) The limit of 4096 is for V4.0, I believe. You didn't say which version of Digital UNIX you are using (it's ALWAYS a good idea to give a specific version number when asking questions about any operating system). Very old versions of Digital UNIX (or OSF/1) had a lower maximum than 4096, I think. According to the release notes for V4.0D, page 1-6, in V4.0D the upper limit has been raised to 65536 descriptors. However, the defaults are still set to 4096. See section E of the V4.0D release notes for more information about changing these limits. Generally, one can change parameters such as this one using the "sysconfig" utility. -Jeff