How to prevent /proc/<pid>/status from running slow on AIX ?
dean.long at oracle.com
Thu Jul 16 20:27:21 UTC 2015
If you read /proc/<pid>/status twice in a row, does the value increase
or stay the same? I found the following that implies it's not being
updated between reads:
If that's the case then the accuracy would be limited by how often an
internal snapshot is done for procfs.
Being off by a clock tick sounds reasonable, but being off by 1 second?
not so reasonable.
On 7/15/2015 7:23 AM, Volker Simonis wrote:
> Hi AIX experts,
> do you have any idea how to prevent /proc/<pid>/status from running
> slow on AIX (compared to times() and getrusage())?
> Please have a look at the attached program which describes and
> demonstrates the problem in full detail.
> I'd need a workaround for this problem for the AIX port of the new
> ProcessHandle implementation which came as part of JEP 102.
> Thank you and best regards,
More information about the ppc-aix-port-dev