I am writing a perl script that does some forking work, and I would like to monitor the loads of the computer running it. The load averages are typically around 3 - 6 over 1, 5, 15 minutes, but I seek more information than that.
I already watch the CPU usage on a 10 second interval, as presented by "ps -axo %cpu", but I don't think I am getting the whole picture.
When I use "top" it shows % User, % System, % Nice, % Interrupt, % Idle, but I don't think that "ps -axo %cpu" shows anything but the % User. How can I get a more accurate picture of how much load the system is under?
I haven't been able to find a perl module that does this.