I need to retrieve some system performance statistics programatically. For
various reasons, I don't want to run a command in a shell and parse the output
(at least not sar).
How can I retrieve system performance statistics with some other technique?
In essence, I would like to know how sar, vmstat, etc are implemented
internally. Do they read /dev/kmem, etc? Do they use some magic system
calls? Is this stuff documented anywhere? How can I duplicate some of that
functionality and get system performance statistics into a C program?
Thanks.
ken matson