check overall cpu usage
Dear all,
I wonder to know the command or the procedure to get the overall CPU utilisation in linux. I have used top, iostat, mpstat but the outputs are not the way i needed. Is it possible to get the output like... CPU usage: .....% or something like that. Thanks in advance. Regards, Franklin |
Found this script Calculating CPU Usage from /proc/stat; saved it to a file, made it executable, and it worked.
|
Quote:
"^cpu" and adds up values. Only the first 4 are actually relevant, there's no point in adding softirq, irq, steal and such to the CPU. Cheers, Tink |
All times are GMT -5. The time now is 03:12 AM. |