PROCFS limited to 256 entries!?

From: Brian K. Holman <bkh_at_lib1.byu.edu>
Date: Wed, 29 Mar 1995 22:35:04 -0700 (MST)

I have created a program that reads the PROCFS and uses that information
to build a process tree. It then kills the leaf nodes that have been idle
for a certain amount of time.

However, I have run into a snag. The /proc directory will only report 256
entries [254 processes, (.), (..)]. Even if I have 500 active processes on
the system, the maximum I can see in /proc is 256 using ls or the readdir
system call.

I tried to find a kernel paramter that I could change but without any
success. Can anyone shed any light on this problem?
-- 
+-----------------------------+--------------------------------------------+
| BRIAN K. HOLMAN             | E-Mail:               brian_holman_at_byu.edu |
| Programmer/Systems Analyst  | URL:        http://lib1.byu.edu/staff/bkh/ |
| Library Information Systems | Mail:           2330 HBLL, Provo, UT 84602 |
| Brigham Young University    | Phone:                      (801) 378-8162 |
+-----------------------------+--------------------------------------------+
Received on Thu Mar 30 1995 - 00:32:35 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT