SUMMARY: large /proc dir size

From: Mark Ashley (marka@drives.rta.nsw.gov.au)
Date: Mon Apr 12 1999 - 09:01:28 CDT


I said:
>>I noticed the /proc directory is:
>>
>>dr-xr-xr-x 228 root root 262336 Apr 12 19:47 proc/

As usual Casper had the answer.

Casper Dik <casper@holland.sun.com> said:
>Its size is probably based on the number of processes that can run on
>your system at the same time.

Works for me. I did some checking and the size of a /proc directory
in Solaris 2.6 and Solaris 7, (I didn't check any other versions),
is 16 * v.v_proc. v.v_proc being the maximum number of processes.
Use /etc/sysdef to view your system paramters. Thus my 262336 byte
virtual directory is capable of holding the information for 16394
processes. Tuning that value would alter the size of the /proc
directory accordingly.

Thanks to:
Casper Dik <casper@holland.sun.com>
David B. Harrington <dharringt@deq.state.va.us>

Best,
Mark Ashley
marka@drives.rta.nsw.gov.au



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:18 CDT