![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cpu Usage | mirusnet | UNIX for Advanced & Expert Users | 0 | 04-10-2008 12:49 PM |
| CPU usage and memory usage | mansoorulhaq | High Level Programming | 1 | 08-09-2007 01:55 PM |
| cpu usage | gfhgfnhhn | UNIX for Dummies Questions & Answers | 4 | 09-17-2006 06:11 AM |
| Monitor CPU usage and Memory Usage | Gajanad Bihani | High Level Programming | 2 | 03-09-2005 04:35 AM |
| cpu usage | sushaga | Filesystems, Disks and Memory | 0 | 04-06-2002 05:46 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Getting CPU Usage
For analysis, I need to gather CPU usage from say 1:00 PM to 2:00 PM every 10 seconds on a given day. I heard this can be done with awk, but my UNIX is kind of rusty.
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Try running this command at 1:00 PM.
Code:
mpstat 10 60 >> /path/to/logfile & |
|
#3
|
|||
|
|||
|
sar -u 10 60
|
|
#4
|
|||
|
|||
|
Hello,
In a Linux box you can get {1,5,15} mins CPU load averages from /proc/loadavg special "file" with the help of "awk", for example: Quote:
-- Santi Saez |
|
#5
|
|||
|
|||
|
Thanks everyone!
|
|||
| Google The UNIX and Linux Forums |