Originally posted by: SystemAdmin
I am developing application with monitoring system/processes performance for AIX 5.1 and later.
What system APIs are more preferable?
1) For process monitoring I have found
-
getprocs system call
-
direct /proc fs reading
Is there any significant difference betwee them?
2) For system performance I have found perfstat API, it seems good enough for my purpose, but in most code example a found in internet direct reading from /dev/kmem is used.
Why nobody uses perstat API? It is really more comfortable, does not require root privileges, gather a lot of performance data.
Is there any reason not to use perstat api except old code support?
Thanks a lot!
#AIX-Forum