Originally posted by: ThosRTanner
I've just found a post in comp.unix.aix from 2004 indiciating this was a problem then, and the user submitted a ticket to IBM:
Date: 17 Feb 2004 11:22:37 -0800
<quote>
We are running on AIX 5.1.0.0 ML4.
We have the need to obtain highly accurate CPU usage information about
all the processes in a tree with a given root pid. We are doing an
opendir() of /proc, reading all entries (pids), and opening
/proc/<pid>/psinfo to obtain the psinfo.pr_time for each one. However,
in the process of testing, we found that the process ids of running
processes would inexplicably disappear from /proc, meaning they would
not show up in opendir/readdir, or for that matter, an ls of /proc. They
would however be visible on reading /proc/<pid> directly. What the
heck is going on here?! It is critical for us to have /proc accurately
reflect the currently running processes. I've submitted an ETR to IBM,
but was curious to know whethere anyone else has seen this problem.
</quote>
Obviously IBM have taken this issue very seriously, I don't think
#AIX-Forum